From ece497feb5592a4bbdc6f06355849183a3d6a4a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Gonz=C3=A1lez=20Santamarta?= Date: Thu, 7 Nov 2024 20:32:36 +0100 Subject: [PATCH] adding tutorials and example interfaces installation to README --- Dockerfile | 3 +-- README.md | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3304472..660a1a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,7 @@ RUN source /opt/ros/${ROS_DISTRO}/setup.bash RUN apt-get update RUN rosdep update && rosdep install --from-paths src --ignore-src -r -y RUN if [ "$ROS_DISTRO" = "foxy" ] || [ "$ROS_DISTRO" = "galactic" ] || [ "$ROS_DISTRO" = "rolling" ]; then \ - apt install -y ros-$ROS_DISTRO-example-interfaces \ - ros-$ROS_DISTRO-action-tutorials-interfaces; \ + apt install -y ros-$ROS_DISTRO-action-tutorials-interfaces ros-$ROS_DISTRO-example-interfaces; \ fi # colcon the ws diff --git a/README.md b/README.md index ca6bc58..2818888 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,12 @@ $ cd ~/ros2_ws $ colcon build ``` +If you are using a deprecated ROS 2 distro (like Foxy or Galactic) or the Rolling distro, you have to install the tutorials and example interfaces: + +```shell +$ sudo apt install -y ros-$ROS_DISTRO-action-tutorials-interfaces ros-$ROS_DISTRO-example-interfaces +``` + ## Docker If your operating system doesn't support ROS 2, docker is a great alternative. You can use an image from [Dockerhub](https://hub.docker.com/r/mgons/yasmin/) or create your own images. First of all, to build the image you have to use the following command: