Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki authored Feb 6, 2024
1 parent d639013 commit 037f934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKDIR /ros2_ws

COPY ./husarion_utils/healthcheck.cpp /husarion_utils/healthcheck.cpp
COPY ./husarion_utils/CMakeList.txt /husarion_utils/CMakeList.txt
COPY ./husarion_utils/package.txt /husarion_utils/package.txt
COPY ./husarion_utils/package.xml /husarion_utils/package.xml

# In version 1.0.12 MPPI doesn't work on RPi4 (build from source)
# Install everything needed
Expand All @@ -33,13 +33,13 @@ RUN MYDISTRO=${PREFIX:-ros}; MYDISTRO=${MYDISTRO//-/} && \
mv /husarion_utils/healthcheck.cpp /ros2_ws/src/healthcheck_pkg/src/ && \
cd .. && \
# Install dependencies
mv /husarion_utils/CMakeList.txt src/navigation2/nav2_mppi_controller/CMakeList.txt && \
mv /husarion_utils/package.xml src/navigation2/nav2_mppi_controller/package.xml && \
rm -rf /etc/ros/rosdep/sources.list.d/20-default.list && \
rosdep init && \
rosdep update --rosdistro $ROS_DISTRO && \
rosdep install -i --from-path src --rosdistro $ROS_DISTRO -y && \
# Build
mv /husarion_utils/CMakeList.txt src/navigation2/nav2_mppi_controller/CMakeList.txt && \
mv /husarion_utils/package.xml src/navigation2/nav2_mppi_controller/package.xml && \
colcon build --event-handlers console_direct+ --cmake-args -DBUILD_TESTING=OFF && \
# Save version
echo $(dpkg -s ros-$ROS_DISTRO-navigation2 | grep 'Version' | sed -r 's/Version:\s([0-9]+.[0-9]+.[0-9]+).*/\1/g') > /version.txt && \
Expand Down

0 comments on commit 037f934

Please sign in to comment.