ORB_SLAM2 icon indicating copy to clipboard operation
ORB_SLAM2 copied to clipboard

./build_ros.sh error

Open tungtungyan opened this issue 2 years ago • 2 comments

I have the error when running ./build_ros.sh. [rosbuild] rospack found package "ORB_SLAM2" at "", but the current directory is "/media/ytl/2TB/catkin_orb/src/ORB_SLAM2_modified/Examples/ROS/ORB_SLAM2". You should double-check your ROS_PACKAGE_PATH to ensure that packages are found in the correct precedence order.

However, my $ROS_PACKAGE_PATH is this. ytl@ytl-System-Product-Name:~$ echo $ROS_PACKAGE_PATH

/opt/ros/melodic/share:/media/ytl/2TB/catkin_orb/src/ORB_SLAM3/Examples/ROS:PATH/ORB_SLAM2_modified/Examples/ROS

ytl@ytl-System-Product-Name:~$ echo $ROS_ROOT /opt/ros/melodic/share/ros

My .bashrc file: source /opt/ros/melodic/setup.bash #export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:PATH/ORB_SLAM3/Examples/ROS export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:PATH/ORB_SLAM2_modified/Examples/ROS

Ubuntu 18.04

tungtungyan avatar May 18 '22 07:05 tungtungyan

I have the exact problem. Did you solve it?

fikricanozgur avatar May 28 '22 14:05 fikricanozgur

Maybe "source ~/.bashrc" can be useful

zcjysustech avatar Jun 06 '22 04:06 zcjysustech