解决方法
1.在 /opt/ros/melodic/setup.sh文件最后加入
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/hnu/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM
然后执行 source setup.sh
2 执行
sudo gedit ~/.bashrc
在里面加入
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/hnu/catkin_ws/src/DS-SLAM/Examples/ROS/ORB_SLAM2_PointMap_SegNetM
然后执行 source ~/.bashrc