This workspace contains a custom ROS 2 package that enables the classic turtlesim simulator to trace the letter “N”, representing NC State University.
- ROS2 Jazzy
- Python3
- Turtlesim (ros-jazzy-turtlesim)
To install turtlesim:
sudo apt update
sudo apt install ros-jazzy-turtlesim# Source ROS2 Jazzy
source /opt/ros/jazzy/setup.bash
# Build the workspace
colcon build --symlink-installYou’ll need two terminal windows — one for the turtlesim_node and one for your custom node.
-
In the first terminal, source ROS 2 and your workspace, then start TurtleSim:
source /opt/ros/jazzy/setup.bash source install/setup.bash ros2 run turtlesim turtlesim_node
-
In a second terminal, source again and run the custom package:
source /opt/ros/jazzy/setup.bash source install/setup.bash ros2 run turtlesim_draw_n turtlesim_draw_n
The Turtle will trace the letter N as shown below:
