[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

猜你喜欢

转载自blog.csdn.net/fb_941219/article/details/88783718