Code Monkey home page Code Monkey logo

Comments (17)

zsy372901 avatar zsy372901 commented on July 4, 2024 10

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.

ankitvora7 avatar ankitvora7 commented on July 4, 2024 6

It's working! I wasn't sourcing it!

from orb_slam2.

ankitvora7 avatar ankitvora7 commented on July 4, 2024 2

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.

ankitvora7 avatar ankitvora7 commented on July 4, 2024

@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.

zsy372901 avatar zsy372901 commented on July 4, 2024

congratulations!

from orb_slam2.

ramtinkr avatar ramtinkr commented on July 4, 2024

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.
bashrc ros path
rosbuild_init error

Do you know how to solve the problem ?

from orb_slam2.

crvogt avatar crvogt commented on July 4, 2024

Hi ankitvora7,

I'm having the same problem here; what was it you weren't sourcing?

Thanks!

from orb_slam2.

ankitvora7 avatar ankitvora7 commented on July 4, 2024

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.

crvogt avatar crvogt commented on July 4, 2024

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.

ankitvora7 avatar ankitvora7 commented on July 4, 2024

Awesome :)

from orb_slam2.

pipi1226 avatar pipi1226 commented on July 4, 2024

@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.

Arashm12 avatar Arashm12 commented on July 4, 2024

@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.

fanyuzeng avatar fanyuzeng commented on July 4, 2024

@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.

BW25 avatar BW25 commented on July 4, 2024

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.

BW25 avatar BW25 commented on July 4, 2024

@ankitvora7

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.

BW25 avatar BW25 commented on July 4, 2024

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.

RafaelAgular avatar RafaelAgular commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.