mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-15 07:40:20 +08:00
Docker
-
Available images on introlab3it/rtabmap_ros:
indigo kinetic melodic, melodic-latest noetic, noetic-latest- The
-latestimages are automatically built from latest version ofrtabmapandrtabmap_rosfrom source (including dependencies that are not available with ROS binaries). The other images have the same version than the binaries released on ROS.
- The
-
Launch
rtabmapfrom inside the container (no gui), saving the database on host~/.ros/rtabmap.db:docker run -it --rm \ --user $UID \ -e ROS_HOME=/tmp \ --network host \ -v ~/.ros:/tmp \ introlab3it/rtabmap_ros:noetic-latest \ roslaunch --wait rtabmap_launch rtabmap.launch rtabmap_viz:=false database_path:=/tmp/rtabmap.db rtabmap_args:="--delete_db_on_start" -
Launch
rtabmapfrom inside the container (with gui), saving the database on host~/.ros/rtabmap.db, using nvidia-docker2 approach:# those following 3 lines would need to be done only one time XAUTH=/tmp/.docker.xauth touch $XAUTH xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge - docker run -it --rm \ --privileged \ --user $UID \ -e ROS_HOME=/tmp \ -e DISPLAY=$DISPLAY \ -e QT_X11_NO_MITSHM=1 \ -e NVIDIA_VISIBLE_DEVICES=all \ -e NVIDIA_DRIVER_CAPABILITIES=all \ -e XAUTHORITY=$XAUTH \ --runtime=nvidia \ --network host \ -v $XAUTH:$XAUTH \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v ~/.ros:/tmp \ introlab3it/rtabmap_ros:noetic-latest \ roslaunch --wait rtabmap_launch rtabmap.launch database_path:=/tmp/rtabmap.db gui_cfg:=/tmp/rtabmap_gui.ini rtabmap_args:="--delete_db_on_start"