- rosbag record -a录包报错
rospkg.common.ResourceNotFound: rosbag
- 启动文件依赖rosbag但是没有找到,ros环境变量未生效
source /opt/ros/melodic/setup.bash4. 其他
-
rostopic echo /topicName报错
Cannot load message class for [自己定义的message]. Are your messages built?
-
原因:自定义消息类型,需要配置工作空间
-
解决方法
cd /xxx/catkin_ws source devel/setup.bash
参考文章:
加载环境变量后解决rosbag报错
添加message头文件
加载环境变量后解决message not found
created by shuaixio, 2021.12.02



