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?
why?
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?
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 what is wrong with cloning the repo into the workspace? For example, I do that to slightly modify the code for my needs.
Did you install the rtabmap?
sudo apt-get install ros-melodic-rtabmap
Cloning the sources is not necessary if you've already installed a package using
apt
(orapt-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.
that's the first line @Corey_Cazes writes in his question ..
@gvdhoorn there is a difference between
rtabmap
andrtabmap-ros
rtabmap_ros depends on
rtabmap
. There is no way to install the former without the latter if you useapt-get
.@gvdhoorn Yes, I do not know why I thought otherwise...
After googling the problem I found a possible solution. Better to do some small research first :) https://github.com/introlab/rtabmap_r...
@EdwardNur: +1 for trying to help.
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
).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.