Merged ros dockerfiles.

This commit is contained in:
Isse
2025-01-27 17:21:34 +01:00
parent 8bf5a5e596
commit 19aecee4c4
3 changed files with 5 additions and 65 deletions

View File

@ -14,6 +14,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends ros-humble-ros-
RUN apt-get update && apt-get install -y --no-install-recommends ros-dev-tools
RUN echo "source /opt/ros/humble/setup.bash" >> ~/.bashrc
# Fix ros package building error
RUN pip3 install --no-cache-dir "setuptools<=58.2.0"
# Create ROS2 workspace for basic packages
RUN mkdir -p /project/base/src/
RUN cd /project/base/; colcon build
@ -39,9 +42,6 @@ RUN mkdir -p /project/dev_ws/src/
RUN cd /project/dev_ws/; colcon build
RUN echo "source /project/dev_ws/install/setup.bash" >> ~/.bashrc
# Fix ros package building error
RUN pip3 install --no-cache-dir "setuptools<=58.2.0"
# Copy modules
COPY ./extras/include/ /RapidPoseTriangulation/extras/include/
COPY ./scripts/ /RapidPoseTriangulation/scripts/