Skip to content

Commit

Permalink
[Documentation-minor] Add instructions to the turtlesim tutorial abou…
Browse files Browse the repository at this point in the history
…t how to execute the generated package within a ROS 2 ws
  • Loading branch information
ipa-nhg committed Nov 29, 2023
1 parent 31002c9 commit ba5a00d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docu/Example_Turtlesim.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ turtlesim_system:

If you save (Ctrl+S) after the last modifications a new folder "src-gen" will be automatically created. This folder contains a ROS2 package ready to be executed with a launch file to start the designed system.

If you source a valid ROS installation and call the launch command the turtlesim example will be launched:
For a quick check, if you source a valid ROS installation and call the launch command the turtlesim example will be launched:

```
source /opt/ros/ROSDISTRO/setup.bash
Expand All @@ -128,3 +128,20 @@ Using the terminal of the keyboard node you can use the arrows to send new comma
![alt text](images/turtlesim_tutorial4.gif)


To make use of the new created package in ROS, we recommend to create a ros workspace and add there the package. This means:

```
cd ~
mkdir -p ros2_ws/src
cp PATH_TO_GENERATED_PACKAGE_UNDER_SRC-GEN ros2_ws/src/ -r
cd ros2_ws
rosdep install --from-path src -i -y
colcon build
source install/setup.bash
```

To launch the system, the traditional ros2 launch command can be called:

```
ros2 lanunch turtlesim_system turtlesim_system.launch.py
```

0 comments on commit ba5a00d

Please sign in to comment.