Added docker examples. rtabmapviz: Fixed empty cloud warnings when not subscribing to any topics.

This commit is contained in:
matlabbe
2019-03-01 13:18:02 -05:00
parent cd8df34e59
commit cb29bdcb40
5 changed files with 76 additions and 32 deletions
+6
View File
@@ -0,0 +1,6 @@
FROM ros:melodic-perception
# install rtabmap packages
RUN apt-get update && apt-get install -y \
ros-melodic-rtabmap \
ros-melodic-rtabmap-ros \
&& rm -rf /var/lib/apt/lists/
+33
View File
@@ -0,0 +1,33 @@
FROM ros:melodic-perception
# install rtabmap packages
RUN apt-get update && apt-get install -y \
ros-melodic-rtabmap-ros \
&& apt-get remove -y \
ros-melodic-rtabmap \
&& rm -rf /var/lib/apt/lists/
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /root/
RUN git clone https://github.com/introlab/rtabmap.git
# Build RTAB-Map project
RUN source /ros_entrypoint.sh && \
cd rtabmap/build && \
cmake .. && \
make -j$(nproc) && \
make install && \
cd ../.. && \
rm -rf rtabmap && \
ldconfig
RUN source /ros_entrypoint.sh && \
mkdir -p catkin_ws/src && \
cd catkin_ws/src && \
catkin_init_workspace && \
git clone https://github.com/introlab/rtabmap_ros.git && \
cd .. && \
catkin_make -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic install && \
cd && \
rm -rf catkin_ws