Skip to content

Commit

Permalink
adding tutorials and example interfaces installation to README
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Nov 7, 2024
1 parent 3856622 commit ece497f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ece497f

Please sign in to comment.