Comments (17)
Replace PATH by the folder where you cloned ORB_SLAM2:
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:PATH/ORB_SLAM2/Examples/ROS
from orb_slam2.
It's working! I wasn't sourcing it!
from orb_slam2.
Oh I think I know what the issue is. I forgot to source it. My bad. Let me check and get back :) Thanks!
from orb_slam2.
@zsy372901
I already did that. This is what I added to my bashrc file:
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/ankit/orb_slam_catkin_ws/ORB_SLAM2/Examples/ROS
from orb_slam2.
congratulations!
from orb_slam2.
Hello, @ankitvora7 @zsy372901 @raulmur
I have got the error of rosbuilt_init while operating cmake .. -DROS_BUILD_TYPE=Release in /Examples/ROS/ORB_SLAM2/build. Here my ROS path in .bashrc file:
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc source ~/.bashrc
export Examples/ROS/ORB_SLAM2=${Examples/ROS/ORB_SLAM2}:/home/ramtin/ORB_SLAM2/Examples/ROS
source /opt/ros/indigo/setup.bash
--------------------------------------------------------------------Here is the Error :
ramtin@ramtin:/ORB_SLAM2/Examples/ROS/ORB_SLAM2$ mkdir build ramtin@ramtin:/ORB_SLAM2/Examples/ROS/ORB_SLAM2$ cd build ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build$ cmake .. -DROS_BUILD_TYPE=Release -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at CMakeLists.txt:4 (rosbuild_init): Unknown CMake command "rosbuild_init".
-- Configuring incomplete, errors occurred! See also "/home/ramtin/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/CMakeFiles/CMakeOutput.log". ramtin@ramtin:~/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build$ make -j make: * No targets specified and no makefile found. Stop.
Do you know how to solve the problem ?
from orb_slam2.
Hi ankitvora7,
I'm having the same problem here; what was it you weren't sourcing?
Thanks!
from orb_slam2.
Source the catkin workspace where you've kept your orb_slam packages. So in my case, I sourced the setup.bash in the devel folder of "orb_slam_catkin_ws". See if that works!
from orb_slam2.
You know I'd swear I sourced it. I guess 3am might not be the best time to try and link everything :D But yeah, that worked, brought up an easy to fix new bug, and now I'm up and running! Thanks for your quick reply.
from orb_slam2.
Awesome :)
from orb_slam2.
@ramtinkr
It seems that ros didn't use a workspace. I've met this problem about rosbuilt_init error.
http://wiki.ros.org/catkin/Tutorials/using_a_workspace
May it help you.
echo $ROS_PACKAGE_PATH
" ROS_PACKAGE_PATH=/opt/ros/indigo/share:/opt/ros/indigo/stacks:PATH_TO_ORB-SLAM2/ORB_SLAM2/Examples/ROS "
Hope it can solve the problem.
from orb_slam2.
@ankitvora7
I sourced but it doesn't work. What is wrong?
Its my .bashrc:
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/arash/Desktop/ORB_SLAM2/Examples/ROS
source /opt/ros/kinetic/setup.bash
from orb_slam2.
@Arashm12 source the setup.bash in ROS file, for example , it's my source:
source /home/z/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/devel/setup.bash
good luck!
from orb_slam2.
Hello, I am getting the same error.
When I attempt to run build_ros.sh, it fails at cmake .. -DROS_BUILD_TYPE=Release
I added this line to .bashrc as instructed
export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/home/h/software/ORB_SLAM2/Examples/ROS
I noticed the lines about sourcing, and added this line to .bashrc
source /home/h/ORB_SLAM2/Examples/ROS/ORB_SLAM2/build/devel/setup.bash
However, I still get the same error, and when I checked, the devel folder does not exist.
Can anyone help?
from orb_slam2.
It's working! I wasn't sourcing it!
If you don't mind, what do you mean by sourcing it, and how can I do this?
The documentation made no reference to a catkin workspace, so I didn't use one.
Thanks.
from orb_slam2.
Solved the problem. I followed a guide for installing ROS that may have been a little out of date instead of the official documentation, so I had a few missed dependencies.
If it helps, it was this line:
sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
from here:
http://wiki.ros.org/melodic/Installation/Ubuntu
from orb_slam2.
Oh, creo que sé cuál es el problema. Olvidé buscarlo. Culpa mía. Déjame comprobar y volver :) ¡Gracias!
Como lo buscaste?
from orb_slam2.
Related Issues (20)
- I am getting this error while building the ORB_SLAM2 file please help.. I m running this on NVIDIA JETSON ORIN NANO
- Build failed on Ubuntu 22.04 and ros2 humble
- Stereo baseline of Da Vinci Xi surgical robot
- camera postion please ?
- Why not do `mpCurrentKeyFrame->AddMapPoint(pMP, i)` after `pMP->AddObservation(mpCurrentKeyFrame, i)` during LocalMapping::ProcessNewKeyframe ?
- KeyFrameTrajectory.txt?
- Fix cmake to work with new version of opencv please? I have 4.5.4 HOT 1
- Program does not go forward after initialization while doing rgb-d example.
- compilation issue -- ORB_SLAM2/Thirdparty/g2o/g2o/types/../core/openmp_mutex.h:30:10: fatal error: ../../config.h: No such file or HOT 2
- Running Stereo Node Error
- /usr/bin/ld: Cannot find -lEigen3::Eigen
- When using a undistored image as input image
- C++ Version and OpenCV version
- Gazebo and ORBSLAM
- Run Tracking, Local Mapping, and Loop Closure on a single thread
- makefile found - problem
- Error when using RGBD mode with depth obtained by monocular depth estimate
- Use forward declaration in header but also include corresponding header file at same time HOT 1
- fatal error: opencv2/photo/photo_c.h: 没有那个文件或目录 HOT 1
- When I run './build.sh', I made an error like ‘recipe for target 'CMakeFiles/ORB_SLAM2.dir/src/FrameDrawer.cc.o' failed’
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orb_slam2.