【c++ debug】rospkg.common.ResourceNotFound: rosbag
rosbag record报错,加载ros环境变量,message not built加载工作空间
·
1. 问题
- rosbag record -a录包报错
rospkg.common.ResourceNotFound: rosbag
2. 原因
- 启动文件依赖rosbag但是没有找到,ros环境变量未生效
3. 解决方法
source /opt/ros/melodic/setup.bash
4. 其他
-
rostopic echo /topicName报错
Cannot load message class for [自己定义的message]. Are your messages built?
-
原因:自定义消息类型,需要配置工作空间
-
解决方法
cd /xxx/catkin_ws
source devel/setup.bash
参考文章:
加载环境变量后解决rosbag报错
created by shuaixio, 2021.12.02
更多推荐
所有评论(0)