This project demonstrates the use of ROS2 with the classic Turtlesim simulator. It provides a simple environment to learn and experiment with ROS2 concepts such as nodes, topics, and services.
- Ubuntu 24.04.3 LTS
- ROS2 (Humble or newer) installed
rosdep
initialized- Colcon build tool
Clone the repository and install dependencies:
git clone <repository-url>
cd ros2_turtlesim
rosdep install --from-paths src --ignore-src -r -y
colcon build
source install/setup.bash
chmod +x src/turtleMotionController/turtleMotionController/motionController.py
-
Start the ROS2 core (if needed):
source /opt/ros/<ros2-distro>/setup.bash
-
Launch the Turtlesim node:
ros2 run turtlesim turtlesim_node
-
(Optional) Run additional nodes or scripts as needed.
ros2 launch turtleMotionController demo.launch.py
MIT License