2025-06-10 08:39:16 -07:00
|
|
|
FROM introlab3it/rtabmap:jammy
|
2023-01-22 16:19:34 -08:00
|
|
|
|
2025-06-16 19:20:21 -07:00
|
|
|
RUN mkdir -p ros2_ws/src
|
2023-01-22 16:19:34 -08:00
|
|
|
|
|
|
|
|
COPY . ros2_ws/src/rtabmap_ros
|
|
|
|
|
|
|
|
|
|
RUN source /ros_entrypoint.sh && \
|
|
|
|
|
cd ros2_ws && \
|
2025-06-16 19:20:21 -07:00
|
|
|
export MAKEFLAGS="-j2" && \
|
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 && \
|
2025-06-10 10:46:34 -07:00
|
|
|
rosdep install --from-paths src --ignore-src -r -y -t build_export -t test -t build -t buildtool_export -t buildtool --skip-keys="rtabmap" && \
|
2023-10-14 19:49:25 -07:00
|
|
|
apt-get clean && rm -rf /var/lib/apt/lists/ && \
|
2025-06-16 19:20:21 -07:00
|
|
|
colcon build --executor sequential --event-handlers console_direct+ --install-base /opt/ros/humble --merge-install --cmake-args --debug-find -DRTABMAP_SYNC_MULTI_RGBD=ON -DCMAKE_BUILD_TYPE=Release && \
|
2023-01-22 16:19:34 -08:00
|
|
|
cd && \
|
|
|
|
|
rm -rf ros2_ws
|