Skip to content

Commit fe354f4

Browse files
author
Ryan Friedman
committed
Install MAVROS, add more comments
Signed-off-by: Ryan Friedman <[email protected]>
1 parent df1d0f2 commit fe354f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ros/humble/ubuntu/focal/ros1-bridge/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ RUN set -eux; \
1818
# setup sources.list
1919
RUN echo "deb [ signed-by=/usr/share/keyrings/ros1-latest-archive-keyring.gpg ] http://packages.ros.org/ros/ubuntu focal main" > /etc/apt/sources.list.d/ros1-latest.list
2020

21+
# Install ROS 1 binaries, plus the message dependencies.
22+
# If they don't have ROS 1 message binaries, you will need to set up a catkin workspace to build.
2123
RUN apt-get update && apt-get install -y --no-install-recommends \
2224
ros-noetic-ros-core=1.5.0-1* \
25+
ros-noetic-mavros-msgs \
2326
&& rm -rf /var/lib/apt/lists/*
2427

2528
ENV ROS1_INSTALL_PATH=/opt/ros/noetic
@@ -51,6 +54,8 @@ RUN . /opt/ros/humble/setup.sh && colcon build --packages-up-to ${CUSTOM_MSG_PKG
5154
# This links to all the other message packages at build time.
5255
# Order of sourcing is VERY picky and NOT clear in the rosbridge README.
5356
# https://github.com/ros2/ros1_bridge?tab=readme-ov-file#building-the-bridge-from-source
57+
# This shows the source order with custom workspaces
58+
# https://github.com/jayprajapati009/ros1_bridge_tutorial?tab=readme-ov-file#ros1_bridge-setup
5459
RUN . /opt/ros/noetic/setup.sh && . /opt/ros/humble/setup.sh && . install/setup.sh && colcon build --packages-select ros1_bridge
5560

5661
# setup entrypoint

0 commit comments

Comments
 (0)