Get fast_lio cmake execute the git submodule init

This commit is contained in:
Matt Spencer
2026-07-17 10:42:40 +00:00
parent a9234a90be
commit 6ca2d063d6
2 changed files with 27 additions and 13 deletions
+2 -11
View File
@@ -11,9 +11,6 @@ COPY upstream.jazzy.repos ./upstream.jazzy.repos
# Import all upstream repostories
RUN vcs import ./src/upstream < ./upstream.jazzy.repos
RUN cd ./src/upstream/FAST_LIO && \
git submodule update --init
# Apply patches to upstream
RUN ./patches/apply_patches.sh
@@ -38,17 +35,11 @@ RUN apt-get update && \
rosdep install --from-paths src --ignore-src -r -y && \
rm -rf /var/lib/apt/lists/*
RUN cd src/upstream/livox_sdk && \
mkdir -p build && \
cd build && rm -rf * && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
make -j && \
make install
# Build the workspace with symlink install
# livox_sdk is now an ament_cmake package built by colcon (no manual /usr/local install needed).
RUN . /opt/ros/jazzy/setup.sh && \
colcon build --symlink-install \
li --cmake-args -DROS_EDITION=ROS2 -DDISTRO_ROS=jazzy
--cmake-args -DROS_EDITION=ROS2 -DDISTRO_ROS=jazzy
# Source the overlay on container startup
RUN echo "source /opt/ros/jazzy/setup.bash" >> /root/.bashrc && \