-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ROS build error for ORB_SLAM2 #603
Comments
Hey Rathod, |
Hello, As far as I know ROS_PACKAGE_PATH should be where the packages are |
Did you try |
I checked it but it could not find the ORB_SLAM2 package. So I cloned the SLAM2 library using git in my /opt/ros/kinetic/share folder. then it was able to find the package but the error was not resoved I saw a similar issue inhttps://github.com/raulmur/ORB_SLAM/issues/39 |
Following the steps shown on the web-page worked for me. closing |
Hi~ I'm facing the same error as same as yours~ But when I clicking the website, I see 404... Would you please give me some help~I will appreciate that!! |
did you have source .bashrc |
I found the way man ,maybe we are the same situation, don't let the "source /opt/ros/kinetic/setup.bash" as the last line in ~/.bashrc, it will change the |
I am facing the same error but the link given is not opening. |
I also encountered this error, how can I do? |
I just solved the same problem as you encountered. |
My result is this. |
You can redefine the variable: |
I try your method. echo $ROS_PACKAGE_PATH However, It still have the problem. CMake Error at /opt/ros/melodic/share/ros/core/rosbuild/private.cmake:99 (message): |
Maybe you should try |
|
I try /ORB_SLAM2/Examples/ROS/ORB_SLAM2, but it is still an error. How can I access that directory through cd ${ORB_SLAM_PATH}? |
It's a way to check the enviromental variable.Type this command in the terminal: |
I tried cd ${ORB_SLAM_PATH}, but it did not have any directory. How can I set ${ORB_SLAM_PATH}? Many thanks 🙏 |
|
I try it but still have the problem. In ~/.bashrc, I add the two line. echo $ORB_SLAM_PATH However, I deleted all the export lines in ~/.bashrc. I don't know how to delete it. |
I remember that |
I had solved by sudo ln -s ~/ORB_SLAM2_modified/Examples/ROS/ORB_SLAM2 /opt/ros/melodic/share/ORB_SLAM2 |
Things get strange. i also encountered this problems but it turned out that roslaunch could auto-complete with TAB, but ROS also could not find it. I also echo the variable and find the right path exists . I am trying to use catkin_make. |
I want to build ROS node. I have set the environment variable as follows and also added it to .bashrc. Still I get the errrors as shown bellow. Anyone has idea?
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:home/ujjval/ORB_SLAM2/Examples/ROS/ORB_SLAM2
`ujjval@ujjval-VPCEH18FG:~/ORB_SLAM2$ ./build_ros.sh
Building ROS nodes
mkdir: cannot create directory ‘build’: File exists
[rosbuild] Building package ORB_SLAM2
[rosbuild] Error from directory check: /opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py /home/ujjval/ORB_SLAM2/Examples/ROS/ORB_SLAM2
1
Traceback (most recent call last):
File "/opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in
raise Exception
Exception
CMake Error at /opt/ros/kinetic/share/ros/core/rosbuild/private.cmake:102 (message):
[rosbuild] rospack found package "ORB_SLAM2" at "", but the current
directory is "/home/ujjval/ORB_SLAM2/Examples/ROS/ORB_SLAM2". You should
double-check your ROS_PACKAGE_PATH to ensure that packages are found in the
correct precedence order.
Call Stack (most recent call first):
/opt/ros/kinetic/share/ros/core/rosbuild/public.cmake:177 (_rosbuild_check_package_location)
CMakeLists.txt:4 (rosbuild_init)
-- Configuring incomplete, errors occurred!
See also "/home/ujjval/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found. Stop.
`
The text was updated successfully, but these errors were encountered: