roslaunch rbx1_bringup fake_pi_robot.launch 运行报错[fake_turtlebot.launch] is neither a launch file in

在ros 中运行示例代码

roslaunch rbx1_bringup fake_pi_robot.launch 

时,有时会运行出错,报错如下所示:

[fake_turtlebot.launch] is neither a launch file in package
[rbx1_bringup] nor is [rbx1_bringup] a launch file name The traceback
for the exception was written to the log file

出现该问题的原因是没有把rbx1_bringup的路径加入到环境变量,系统找不到该文件;
解决方法:
一、打开 /etc/profile;

 sudo gedit /etc/profile

二、在 /etc/profile 的最后加入下面两行(把rbx1的路径替换为自己系统上的路径)

export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/exbot/home/catkin_ws/src/rbx1
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/exbot/home/catkin_ws/src/rbx1/rbx1_bringup

三、修改完保存后运行下列命令:

source /etc/profile

欢迎关注我的公众号:

编程技术与生活(ID:hw_cchang)

在这里插入图片描述

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

cchangcs

谢谢你的支持~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值