报错:CMake Error at /opt/ros/melodic/share/ros/core/rosbuild/private.cmake:99 (message):
[rosbuild] rospack found package “ORB-SLAM2” at “”, but the current
directory is “/home/jyy/桌面/ORB-SLAM2”. You should double-check
your ROS_PACKAGE_PATH to ensure that packages are found in the correct
precedence order.
解决
##1.把该软连接,替换为现在工程的软连接。
cd /opt/ros/melodic/share
sudo rm -r ManhattanSLAM-ros
sudo ln -s /home/jyy/桌面/ManhattanSLAM-ros /opt/ros/melodic/share/manhattan-ros
##2.或者在bashrc中添加ROS_PACKAGE_PATH
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/jyy/ORB_SLAM2-master/Examples/ROS/ORB_SLAM2
ORB-ROS版本编译问题;rospack found package “ORB-SLAM2“ at ““, but the current directory is
于 2023-05-09 22:19:08 首次发布