How to install rtabmap for melodic?

asked 2019-03-25 12:32:16 -0500

Corey_Cazes gravatar image

updated 2019-04-06 18:46:58 -0500

jayess gravatar image

I just installed rtabmap using

$ sudo apt-get install ros-melodic-rtabmap-ros

I then cloned the rtabmap-ros repository into my catkin workspace.

Whenever I try to run a launch file in the launch folder it comes back with the error

ERROR: cannot launch node of type [rtabmap_ros/rgbd_odometry]: can't locate node [rgbd_odometry] in package [rtabmap_ros]
ERROR: cannot launch node of type [rtabmap_ros/rtabmap]: can't locate node [rtabmap] in package [rtabmap_ros]
ERROR: cannot launch node of type [rtabmap_ros/rtabmapviz]: can't locate node [rtabmapviz] in package [rtabmap_ros]

I'm trying to get two realsense D435 to map out the room I'm in. I'm very inexperienced so I don't know if I did something wrong. Did I install rtabmap wrong?

edit retag flag offensive close merge delete

Comments

I then cloned the rtabmap-ros repository into my catkin workspace

why?

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 13:04:15 -0500 )edit

I really don't know. I'm very inexperienced and I'm just trying what I can. How do you properly install rtabmap ros for melodic?

Corey_Cazes gravatar image Corey_Cazes  ( 2019-03-25 13:22:18 -0500 )edit

Installing using apt-get should be sufficient.

But to experiment with the .launch files it would perhaps be easier to have a source checkout in your workspace. I'm not an rtabmap "expert", so perhaps we should wait for some comments from @matlabbe.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 13:23:51 -0500 )edit

@gvdhoorn what is wrong with cloning the repo into the workspace? For example, I do that to slightly modify the code for my needs.

EdwardNur gravatar image EdwardNur  ( 2019-03-25 13:54:24 -0500 )edit

Did you install the rtabmap? sudo apt-get install ros-melodic-rtabmap

EdwardNur gravatar image EdwardNur  ( 2019-03-25 13:56:17 -0500 )edit

Cloning the sources is not necessary if you've already installed a package using apt (or apt-get) and merely want to use the nodes/launch files/etc.

If you need to change the source code of a node, then you of course need a checkout. Be aware of the proper build process though: #q252478.

Did you install the rtabmap? sudo apt-get install ros-melodic-rtabmap

that's the first line @Corey_Cazes writes in his question ..

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 13:56:46 -0500 )edit

@gvdhoorn there is a difference between rtabmap and rtabmap-ros

EdwardNur gravatar image EdwardNur  ( 2019-03-25 14:00:38 -0500 )edit

rtabmap_ros depends on rtabmap. There is no way to install the former without the latter if you use apt-get.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 14:03:30 -0500 )edit

@gvdhoorn Yes, I do not know why I thought otherwise...

EdwardNur gravatar image EdwardNur  ( 2019-03-25 14:13:35 -0500 )edit

After googling the problem I found a possible solution. Better to do some small research first :) https://github.com/introlab/rtabmap_r...

EdwardNur gravatar image EdwardNur  ( 2019-03-25 14:14:59 -0500 )edit

@EdwardNur: +1 for trying to help.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-25 14:15:26 -0500 )edit

We don't need to clone the repo if installed from binaries. As @EdwardNur pointed out, try re-sourcing the setup.bash ($ source /opt/ros/melodic/setup.bash).

matlabbe gravatar image matlabbe  ( 2019-03-25 14:28:42 -0500 )edit

Hey so I checked my bash file and I already sourced the setup.bash Any other ideas?

Also, thank you for all the help guys.

Corey_Cazes gravatar image Corey_Cazes  ( 2019-03-29 13:18:55 -0500 )edit