[rosbuild] rospack found package "ORB_VIO_Duo" at "", but the current directory is

cmake … 出现如下错误:

[rosbuild] rospack found package “ORB_VIO_Duo” at “”, but the current
directory is “/home/hri/rosbuild_ws/package_dir/ORB_SLAM2_OpenCV3.2_Duo/Examples/ROS/ORB_VIO_Duo”.
You should double-check your ROS_PACKAGE_PATH to ensure that packages are
found in the correct precedence order.

解决方法: 可能是~/.bashrc添加了新的内容,需要重新source ~/.bashrc,再bash

  1. 修改~/.bashrc的顺序,将最近添加的内容移到前面. 打开新的terminal

sudo gedit ~/.bashrc

  1. source

source ~/.bashrc

  1. bash

bash

  1. 重新打开terminal,上述的操作起作用。

你可能感兴趣的:(疑难杂症)