[rosbuild] rospack found package "XXX" at "", but the current directory is "/home/fb/XXX/YYY/ZZZ/

[rosbuild] rospack found package

      • 引言

引言

类似这种报错:

 [rosbuild] rospack found package "XXX" at "", but the current directory
  is "/home/fb/XXX/YYY/ZZZ/×××".  You should double-check your
  ROS_PACKAGE_PATH to ensure that packages are found in the correct
  precedence order.

都是环境变量中ROS_PACKAGE_PATH 没有更改:gedit ~/.bashrc添加或更改

export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/fb/XXX/YYY/ZZZ/×××

然后:source ~/.bashrc

你可能感兴趣的:(ROS,DeBug备忘)