File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,27 +39,28 @@ ENV PATH="/root/.cargo/bin:${PATH}"
3939
4040# Create workspace
4141WORKDIR /ros2_ws
42+ COPY vendor/stonefish ./vendor/stonefish
43+ # Build Stonefish library
44+ WORKDIR /ros2_ws/vendor/stonefish
45+ RUN mkdir -p build && cd build && \
46+ cmake .. && \
47+ make -j$(nproc) && \
48+ make install && \
49+ ldconfig
50+
51+
4252COPY src/interfaces ./src/interfaces
4353COPY src/bringup ./src/bringup
4454COPY src/controller_stonefish ./src/controller_stonefish
4555COPY src/mission_executor ./src/mission_executor
4656COPY vendor/stonefish_ros2 ./src/stonefish_ros2
47- COPY vendor/stonefish ./vendor/stonefish
4857
4958RUN rosdep init || true && \
5059 rosdep update
5160
5261RUN bash -c "source /opt/ros/jazzy/setup.bash && \
5362 rosdep install --from-paths src --ignore-src -r -y || true"
5463
55- # Build Stonefish library
56- WORKDIR /ros2_ws/vendor/stonefish
57- RUN mkdir -p build && cd build && \
58- cmake .. && \
59- make -j$(nproc) && \
60- make install && \
61- ldconfig
62-
6364# Build ROS 2 workspace
6465WORKDIR /ros2_ws
6566RUN bash -c "source /opt/ros/jazzy/setup.bash && \
You can’t perform that action at this time.
0 commit comments