introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
922 stars 549 forks source link

Visualize created map #1047

Closed nicolasukd closed 7 months ago

nicolasukd commented 8 months ago

Where can i visualize the map thats created? I know that its located in ~/.ros/rtabmap.db by default, but i dont know how to open it.

matlabbe commented 8 months ago

You can open it with:

$ rtabmap ~/.ros/rtabmap.db

Or

$ rtabmap-databaseViewer ~/.ros/rtabmap.db
nicolasukd commented 8 months ago

There is an error about the version of rtabmap, i already try to update it but it doesnt work

image

I try to update rtabmap with this, but it doesnt change the version

cd rtabmap git pull origin master cd build make sudo make install

matlabbe commented 8 months ago

Can you do which to see which rtabmap is started? You may explicitly call ~/rtabmap/build/bin/rtabmap to make sure it is the one you just built with latest master version.

nicolasukd commented 8 months ago

image

How do i explicitly call ~/rtabmap/build/bin/rtabmap?

Im using the melodic-devel version so i think 0.20.23 is the most updated version, so for some reason that rtabmap.db file is in other version (0.21.2)

matlabbe commented 8 months ago

That database may have been created on another computer using a more recent version of rtabmap. If you did:

cd rtabmap
git pull origin master
cd build
make
sudo make install

I'll suggest to remove ros binaries:

sudo apt remove ros-melodic-rtabmap

so you will make sure you will be using 0.21 installed from source instead.

To explicitly call ~/rtabmap/build/bin/rtabmap, just do ~/rtabmap/build/bin/rtabmap in terminal.

nicolasukd commented 7 months ago

It worked. Im wondering now if i can visualize this map in windows.

matlabbe commented 7 months ago

You should be able to visualize on windows using the 0.21.0 binaries (see assets section): https://github.com/introlab/rtabmap/releases/tag/0.21.0