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
Different error buildiing ORB-SLAM #39
Comments
Hi jwcrawley, You need add the ROS_PACKAGE_PATH for your ORB_SLAM package in the bashrc. Please check if you have added it correctly. Hope this helps. |
Indeed, I added the appropriate export for ROS_PACKAGE_PATH and also verified the compile directory was included in its path. And it still gives the error. I'll try in /opt/ros/indigo/share , but as of now, it still does not work. |
For some reason, some of my source tree was incomplete. rm'ing and redownloading from source git solved issue. Now, it's the well known opencv2 issue, which a solution is already stated. Thank you, |
Hi jwcrawley, Is this a OpenCV issue? Can you explain how you solved it in a little more detail? |
Greetings @riaverma96 , That was an annoying error I kept getting, but I think I've solved it now. I'll start from the beginning, which seems to have worked on 2 separate machines: (Be aware, I only recommend the 1st step for completely clean install)
9: Run roscore in a terminal. |
Hi jwcrawley, Thanks :) I followed your steps and it worked out great! I am really curious as to why we are putting the ORB-SLAM package inside catkin_ws instead of the src folder of catkin_ws though. Is this what I should do in the future with packages? Thanks for all your help, |
@jwcrawley I added the web cam node as you provided but there is still no frame capturing (black screen at the image_viewer window). But I tested the camera driver is Okay. So what's the correct way to connect the ORB SLAM with a real USB camera to do online testing? |
In my case I installed sudo apt-get install ros-hydro-usb-cam since the message was appearing ERROR: cannot launch node of type [usb_cam/usb_cam_node]: usb_cam. @jwcrawley I followed your step but the image viewer remains black and the mapping process does not start.
|
first, check if it is done: export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:your_path_to_ORB_SLAM
private.cmake, line 102. it seems that ${pkgname}_PACKAGE_PATH is null, this variable is assigned in the macro "rosbuild_find_ros_package" in public.cmake. thus you can check if the command "rospack find ${pkgname}" is OK.
in my case, the output is
in conclusion, it may be caused by the wrong link version lib. |
@jwcrawley : can I implement it in ARDRONE instead of webcam ? Should I have to make any changes in the launch file ?? |
@jwcrawley - could you post the real value of your ROS_PACKAGE_PATH? I am using catkin_make workspace and trying to make this works... |
Installation: Ubuntu 14.04
ROS: Indigo
Output of $ROS_PACKAGE_PATH=/home/josh/Desktop/ORB-SLAM:/opt/ros/indigo/share:/opt/ros/indigo/stacks
Error occurs in building ORB-SLAM at step 3-6. Output of error:
josh@josh-Surface-with-Windows-8-Pro:~/Desktop/ORB_SLAM/build$ cmake .. -DROS_BUILD_TYPE=RELEASE
[rosbuild] Building package ORB_SLAM
[rosbuild] Error from directory check: /opt/ros/indigo/share/ros/core/rosbuild/bin/check_same_directories.py /home/josh/Desktop/ORB_SLAM
1
Traceback (most recent call last):
File "/opt/ros/indigo/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in
raise Exception
Exception
CMake Error at /opt/ros/indigo/share/ros/core/rosbuild/private.cmake:102 (message):
[rosbuild] rospack found package "ORB_SLAM" at "", but the current
directory is "/home/josh/Desktop/ORB_SLAM". 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/indigo/share/ros/core/rosbuild/public.cmake:177 (_rosbuild_check_package_location)
CMakeLists.txt:4 (rosbuild_init)
-- Configuring incomplete, errors occurred!
See also "/home/josh/Desktop/ORB_SLAM/build/CMakeFiles/CMakeOutput.log".
Further research on answers.ros.org indicates that using CMAKE isn't supported, given the error above. (source: http://answers.ros.org/question/65801/ros-inside-part-of-a-c-project/ )
Does anyone have any sort of answers how to make this work? This would be an impressive project to get up and running.
Sincerely,
Josh Conway
The text was updated successfully, but these errors were encountered: