Skip to content

Commit

Permalink
Install MAVROS, add more comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryan Friedman committed Nov 16, 2024
1 parent df1d0f2 commit fe354f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ros/humble/ubuntu/focal/ros1-bridge/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ RUN set -eux; \
# setup sources.list
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

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

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

# setup entrypoint
Expand Down

0 comments on commit fe354f4

Please sign in to comment.