ROS path [0]=/opt/ros/melodic/share/ros这种错误所有的可能性

1、没有在ros_workspace目录下source devel/setup.bash

2、roslauch启动节点时,launch文件包名打错了也会出现这个错误提示

ERROR: cannot launch node of type [auto_calibrati3on/auto_calibration]: auto_calibrati3on
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/idriver/Data/ros_workspace/src
ROS path [2]=/opt/ros/melodic/share

3、从别人电脑上拷贝过来编译好的ros工程,想直接运行报错

ERROR: cannot launch node of type [perception_calibration/perception_calibration_node]: perception_calibration
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/idriver/work/project/Robotaxi_bus_manual_calibration/src
ROS path [2]=/opt/ros/melodic/share

上面这个/home/idriver/work/project/Robotaxi_bus_manual_calibration/src目录明显是我自己电脑上的目录,拷贝到别人电脑上去了后,别人的目录是/home/idriver/work/Robotaxi_bus_manual_calibration/src,所以报错了,外层加一个project目录就可以了。

我是第二种情况,当时找原因找了半天,最后用rosrun 命令时,提示找不到编译的可执行文件,最后才发现是包名写错了

第三种情况:于2022-07-21碰见,很快发现问题解决了。

你可能感兴趣的:(自动驾驶)