2019-03-01 13:18:02 -05:00
### Docker
2019-11-08 18:58:37 -05:00
* Available images on [introlab3it/rtabmap_ros ](https://hub.docker.com/r/introlab3it/rtabmap_ros/ ):
2019-03-01 13:18:02 -05:00
```
2019-11-08 18:58:37 -05:00
indigo-latest
kinetic-latest
melodic-latest
2019-11-08 18:53:19 -05:00
` ``
* Those images are automatically built from latest version of ` rtabmap` and ` rtabmap_ros` from source.
2019-03-01 13:18:02 -05:00
2019-03-01 13:19:30 -05:00
* The following example show how to launch a camera on host computer and run our pre-built rtabmap container. All examples from [RGB-D tutorial](http://wiki.ros.org/rtabmap_ros/Tutorials/HandHeldMapping) and [stereo tutorial](http://wiki.ros.org/rtabmap_ros/Tutorials/StereoHandHeldMapping) should work using rtabmap from the container instead. Launch camera on host computer (set ROS_IP as the IP used for docker):
2019-03-01 13:18:02 -05:00
` ``bash
$ export ROS_IP=172.17.0.1 && roslaunch openni2_launch openni2.launch depth_registration:=true
# In another terminal, launch rtabmapviz or RVIZ. We do visualization
# on host computer to avoid GPU problems with the container:
$ export ROS_NAMESPACE=rtabmap && rosrun rtabmap_ros rtabmapviz _frame_id:=camera_link
` ``
2019-11-08 18:53:19 -05:00
* Launch ` rtabmap` from inside the container (no gui), saving the database on host ` ~/.ros/rtabmap.db`:
2019-03-01 13:18:02 -05:00
` ``bash
$ docker run -it --rm \
--env ROS_MASTER_URI=http://172.17.0.1:11311 --env ROS_IP=172.17.0.2 \
-v ~/.ros:/root \
2019-11-08 18:53:19 -05:00
introlab3it/rtabmap_ros:kinetic-latest \
2019-03-01 13:18:02 -05:00
roslaunch rtabmap_ros rtabmap.launch rtabmapviz:=false database_path:=/root/rtabmap.db rtabmap_args:="--delete_db_on_start"
` ``