Skip to content

Commit 42b94f4

Browse files
committed
Tutorial content update
1 parent 86da194 commit 42b94f4

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed
-24.7 KB
Loading
Loading
Loading
Loading
Loading

content/hardware/04.pro/boards/portenta-x8/tutorials/16.getting-started-with-ros2/content.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hardware:
1717

1818
In this tutorial, you will learn to set up and run **ROS2 (Robot Operating System 2)** with the **`turtlesim`** visualization tool on the Portenta X8. You will learn to display the graphical output on an external monitor connected via a USB-C® dongle with HDMI output.
1919

20-
![Portenta X8 and ROS2 Turtlesim](assets/portenta-x8-ros2-turtlesim.png)
20+
![Portenta X8 and ROS2 Turtlesim](assets/x8-ros2-turtlesim-banner.gif)
2121

2222
We will explore two approaches: running ROS2 directly through commands and deploying it in a containerized environment using Docker. The **`turtlesim`** application is an excellent introduction to ROS2, providing a simple way to understand ROS2 concepts like nodes, topics and services through an interactive turtle graphics simulation.
2323

@@ -237,7 +237,7 @@ The `turtlesim` window should appear on your external display if everything is c
237237

238238
These messages confirm that the `turtlesim` node has started successfully and spawned a turtle at the center of the window. You might also see a warning about the runtime directory ownership, which can be safely ignored as it does not affect functionality.
239239

240-
![Turtlesim on External Display with Portenta X8](assets/)
240+
![Turtlesim on External Display with Portenta X8](assets/x8-ros2-cmd-turtlesim-simple.gif)
241241

242242
### Controlling the Turtle
243243

@@ -270,7 +270,7 @@ ros2 topic pub --rate 1 /turtle1/cmd_vel geometry_msgs/msg/Twist \
270270

271271
This command publishes a Twist message at `1 Hz`, telling the turtle to move forward at `2.0 units/second` while rotating at `1.8 radians/second`, creating a circular path. The turtle will continue moving in circles until you stop the command with `Ctrl+C`.
272272

273-
![Turtlesim with Continuous Circular Movement](assets/)
273+
![Turtlesim with Continuous Circular Movement](assets/x8-ros2-cmd-turtlesim-circular.gif)
274274

275275
Alternatively, you can run a pre-programmed coordination example that makes the turtle draw a square pattern:
276276

@@ -282,7 +282,7 @@ ros2 run turtlesim draw_square
282282

283283
The `draw_square` node will reset the turtle to its starting position and then command it to draw a square by repeatedly moving forward and turning 90 degrees. The terminal will show the turtle's progress as it reaches each square corner, with messages indicating the current goal position and when each goal is reached.
284284

285-
![Turtlesim with Square Draw](assets/)
285+
![Turtlesim with Square Draw](assets/x8-ros2-cmd-turtlesim-square.gif)
286286

287287
## Dockerized Deployment
288288

0 commit comments

Comments
 (0)