0
点赞
收藏
分享

微信扫一扫

ROS环境变量的设置


目录

  • ​​问题​​
  • ​​解决​​
  • ​​参考​​

问题

ROS在运行或者启动过程中出现找不到包的问题,具体如下:
​​​ImportError : No module named xxxx.msg​​​ 或者
​roscd/roslaunch cannot find the package that be built recently​

原因是环境变量没设置好。

解决

设置环境变量:

#source /opt/ros/noetic/setup.bash
#source ~/catkin_ws/devel/setup.bash

或者一般是添加到​​~/.bashrc​​文件中。

参考

​​ROS中的roslaunch命令和launch文件(ROS入门学习笔记四)​​​​ImportError : No module named xxxx.msg​​​​roscd/roslaunch cannot find the package that be built recently​​


举报

相关推荐

0 条评论