Robotics StackExchange | Archived questions

How to install rtabmap for melodic?

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?

Asked by Corey_Cazes on 2019-03-25 12:32:16 UTC

Comments

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

why?

Asked by gvdhoorn on 2019-03-25 13:04:15 UTC

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?

Asked by Corey_Cazes on 2019-03-25 13:22:18 UTC

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.

Asked by gvdhoorn on 2019-03-25 13:23:51 UTC

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

Asked by EdwardNur on 2019-03-25 13:54:24 UTC

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

Asked by EdwardNur on 2019-03-25 13:56:17 UTC

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

Asked by gvdhoorn on 2019-03-25 13:56:46 UTC

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

Asked by EdwardNur on 2019-03-25 14:00:38 UTC

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

Asked by gvdhoorn on 2019-03-25 14:03:30 UTC

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

Asked by EdwardNur on 2019-03-25 14:13:35 UTC

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

Asked by EdwardNur on 2019-03-25 14:14:59 UTC

@EdwardNur: +1 for trying to help.

Asked by gvdhoorn on 2019-03-25 14:15:26 UTC

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

Asked by matlabbe on 2019-03-25 14:28:42 UTC

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.

Asked by Corey_Cazes on 2019-03-29 13:18:55 UTC

I don't have a fresh melodic computer to test with, but if I try the following with docker there is no problem:

$ docker pull ros:melodic-perception
$ docker run -it ros:melodic-perception
# apt update
# apt install ros-melodic-rtabmap-ros
# roscore &
# rosrun rtabmap_ros rtabmap

It could be a configuration problem on your system...

Asked by matlabbe on 2019-04-03 17:14:00 UTC

Answers