How to install rtabmap for melodic?

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

Corey_Cazes gravatar image

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

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 imagegvdhoorn ( 2019-03-25 13:04:15 -0600 )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 imageCorey_Cazes ( 2019-03-25 13:22:18 -0600 )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 imagegvdhoorn ( 2019-03-25 13:23:51 -0600 )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 imageEdwardNur ( 2019-03-25 13:54:24 -0600 )edit

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

EdwardNur gravatar imageEdwardNur ( 2019-03-25 13:56:17 -0600 )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 imagegvdhoorn ( 2019-03-25 13:56:46 -0600 )edit

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

EdwardNur gravatar imageEdwardNur ( 2019-03-25 14:00:38 -0600 )edit

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

gvdhoorn gravatar imagegvdhoorn ( 2019-03-25 14:03:30 -0600 )edit