(ROS)RLException: [display_mrobot_with_camera.launch] is neither a launch file等一系列错误解决办法

前提:运行$ roslaunch mrobot_description display_mrobot_chassis_urdf.launch 有误


错误1:rviz直接打不开

错误显示:
RLException: [display_mrobot_with_camera.launch] is neither a launch file in package [mrobot_description] nor is [mrobot_description] a launch file name The traceback for the exception was written to the log file

🎄解决:
1.在终端先运行sudo gedit ~/.bashrc
2.然后在打开的文档最后添加source ~/catkin_ws/devel/setup.bashexport ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:~/catkin_ws/
3.在终端运行source ~/.bashrc
4.在终端运行echo $ROS_PACKAGE_PATH 可以在屏幕上看到你添加的路径
🎄结果:可以打开但是显示如下在这里插入图片描述
错误2:rviz中global status显示红色错误并在终端有错误提示

错误显示:
ERROR: cannot launch node of type [robot_state_publisher/state_publisher]: Cannot locate node of type [state_publisher] in package [robot_state_publisher]. Make sure file exists in package path and permission is set to executable (chmod +x)

🎄解决:

  1. 将mrobot_description功能包下launch文件夹中display_mrobot_chassis_urdf.launch这个文件里面的运行robot_state_publisher节点下的type由type="state_publisher"改为type=“robot_state_publisher”
  2. 进入rviz后将Fixed Frame的map改为base_link
  3. 点击Add,找到RobotModel,选择添加

🎄结果:终端没错误,rviz没错误,能正常显示
在这里插入图片描述

  • 5
    点赞
  • 39
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
根据引用和引用的信息,RLException: [wpb_simple.launch] is neither a launch file in package [wpr_simulation] nor is [wpr_simulation] a launch file name这个错误提示说明在包wpr_simulation中没有名为wpb_simple.launchlaunch文件,或者wpr_simulation不是一个有效的launch文件名。这可能是由于包中缺少了该launch文件,或者文件名填写错误导致的。 为了解决这个问题,你可以尝试以下几种方法: 1. 确认包wpr_simulation中是否存在名为wpb_simple.launch的文件。你可以使用ls命令在包的目录下查看所有的文件和文件夹,确保包含了你要使用的launch文件。 2. 如果确保包中存在该文件,那么可能是文件名填写错误导致的。你可以仔细检查launch文件的文件名是否与你在代码中调用的文件名一致,包括大小写和文件扩展名。 3. 如果你确定文件名正确,那么可能是包的路径设置有问题。你可以检查你的ROS环境变量和包路径设置,确保包wpr_simulation在ROS系统中能够被正确找到。 希望这些方法能够帮助你解决这个问题!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [RLException: [simple_launch] is neither a launch file in package [learning_launch] nor is [learning_](https://blog.csdn.net/qq_37788383/article/details/103701661)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [RLException: [xx.launch] is neither a launch file in package [x] nor is [x] a launch file name的解决...](https://blog.csdn.net/qq_44164791/article/details/130351276)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值