rosrun,roslaunch: cannot launch node or is either a launch file in package

[html]  view plain  copy
 print ? 在CODE上查看代码片 派生到我的代码片
  1. [bzrobot_global.launch] is neither a launch file in package [bzrobot_global] nor is [bzrobot_globa] a launch file name  
  2. The traceback for the exception was written to the log file  


或者

[html]  view plain  copy
 print ? 在CODE上查看代码片 派生到我的代码片
  1. ERROR: cannot launch node of type [bzrobot_yk/bzrobot_yk]: bzrobot_yk  
  2. ROS path [0]=/opt/ros/kinetic/share/ros  
  3. ROS path [1]=/home/wsh/code/bzrobotd  
  4. ROS path [2]=/opt/ros/kinetic/share  

ros使用的过程中,有时候明明有某个node或者launch文件,但是rosrun 或者roslaunch启动的时候,就是找不着:

此时可打打印下 ROS_PACKAGE_PATH的路径


[html]  view plain  copy
 print ? 在CODE上查看代码片 派生到我的代码片
  1. echo $ROS_PACKAGE_PATH  

看一下工作路径是否含有,如果不含有,在.bashrc中添加(.bashrc 在home路径下,最好添加在最后一行,不然其他环境变量可能会覆盖)


[html]  view plain  copy
 print ? 在CODE上查看代码片 派生到我的代码片
  1. export ROS_PACKAGE_PATH=/home/wsh/sw-build/devel:$ROS_PACKAGE_PATH  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这个错误提示是因为在ROS中找不到指定的节点类型。具体来说,这个错误是由于找不到名为\[rviz/rviz\]的节点类型而引起的。为了解决这个问题,你可以尝试安装缺失的软件包。根据引用\[2\]中的建议,你可以使用以下命令来安装缺失的软件包: sudo apt-get install ros-melodic-rviz 这个命令将会安装ROS Melodic版本的rviz软件包,这可能会解决你遇到的问题。希望这个解决方案对你有帮助。如果你还有其他问题,请随时提问。 #### 引用[.reference_title] - *1* [ERROR: cannot launch node of type [arbotix_python/arbotix_driver]: Cannot locate node of type [arbot](https://blog.csdn.net/qq_46067306/article/details/122729678)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [ERROR: cannot launch node of type [rviz/rviz]: rviz](https://blog.csdn.net/weixin_48083022/article/details/117406705)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [ERROR: cannot launch node of type [turtlesim/turtlesim_node]](https://blog.csdn.net/weixin_48826683/article/details/129385247)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值