Get fast_lio cmake execute the git submodule init
This commit is contained in:
+2
-11
@@ -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 && \
|
||||
|
||||
Reference in New Issue
Block a user