Use upstream lidar code

This commit is contained in:
2026-05-07 20:01:57 +00:00
parent 6786dadc7e
commit 68305b3848
109 changed files with 25 additions and 16999 deletions
+6 -2
View File
@@ -5,14 +5,18 @@ FROM ros:kilted AS builder
SHELL ["/bin/bash", "-c"]
# Pin to a specific branch or tag; override with --build-arg SLLIDAR_REF=<ref>
ARG SLLIDAR_REF=main
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
python3-colcon-common-extensions \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /ws
# Source is managed as a git subtree — copy directly from the workspace
COPY lidar/sllidar_ros2/ src/sllidar_ros2/
RUN git clone --depth 1 --branch ${SLLIDAR_REF} \
https://github.com/Slamtec/sllidar_ros2.git src/sllidar_ros2
RUN source /opt/ros/${ROS_DISTRO}/setup.bash && \
colcon build --packages-select sllidar_ros2