2023-08-05 14:45:59 -07:00
|
|
|
FROM introlab3it/rtabmap:jammy-iron
|
|
|
|
|
|
|
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
mkdir -p ros2_ws/src && \
|
|
|
|
|
cd ros2_ws/src
|
|
|
|
|
|
|
|
|
|
COPY . ros2_ws/src/rtabmap_ros
|
|
|
|
|
|
2026-09-21 17:02:45 -07:00
|
|
|
# No rosdep "-r": a bad mirror must fail here.
|
2023-08-05 14:45:59 -07:00
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
cd ros2_ws && \
|
2026-09-21 17:02:45 -07:00
|
|
|
echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries && \
|
2023-10-14 19:41:34 -07:00
|
|
|
rosdep init && \
|
2023-10-14 16:18:56 -07:00
|
|
|
rosdep update && \
|
2023-10-14 19:49:25 -07:00
|
|
|
apt-get update && \
|
2026-09-21 17:02:45 -07:00
|
|
|
rosdep install --from-paths src --ignore-src -y -t build_export -t test -t build -t buildtool_export -t buildtool && \
|
2023-10-22 10:10:27 -07:00
|
|
|
apt remove ros-$ROS_DISTRO-rtabmap* -y && \
|
2026-09-21 17:02:45 -07:00
|
|
|
bash src/rtabmap_ros/docker/verify_deps.sh && \
|
|
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/
|
|
|
|
|
|
|
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
cd ros2_ws && \
|
|
|
|
|
export MAKEFLAGS="-j1" && \
|
2023-08-05 14:45:59 -07:00
|
|
|
colcon build --event-handlers console_direct+ --install-base /opt/ros/iron --merge-install --cmake-args -DRTABMAP_SYNC_MULTI_RGBD=ON -DCMAKE_BUILD_TYPE=Release && \
|
|
|
|
|
cd && \
|
|
|
|
|
rm -rf ros2_ws
|