AI Tool Guides
Best for
Multi-component robot software architecture
Works on
Linux (Ubuntu recommended)
Alternatives
MuJoCo, custom Python
Watch out
Steep learning curve; designed for university/research level
What It Does
The Robot Operating System 2 (ROS 2) is the industry-standard middleware for robotics. It is not an operating system—it is a collection of software libraries and tools that handle the plumbing every robot needs: communication between sensors and actuators, coordinate transforms, navigation, path planning, and visualisation. Most commercial and research robots (including Waymo's self-driving cars and many NASA rovers' ground systems) use ROS or ROS 2 under the hood.
Setup in 5 Minutes
for
the latest ROS 2 release (Jazzy or later).
- Install the turtlesim demo package to verify your setup.
- For a faster start, use a pre-built Docker image:
docker run -it osrf/ros:jazzy-desktop.
Try This
Launch the turtlesim simulator and the
turtle\_teleop\_key node. Drive the turtle around with your
keyboard. Then write a Python node that subscribes to the turtle's
position and publishes velocity commands to make it draw a square
autonomously. You have just learned ROS 2's publish–subscribe
architecture.
Follow Along
Follow Along — Build a Shape-Drawing Robot.
: ros2 run turtlesim turtlesim\_node.
- Create a new Python ROS 2 node that publishes geometry\_msgs/Twist messages to /turtle1/cmd\_vel.
- Program the node to draw a five-pointed star: alternate between moving forward and turning 144.
- Run the node and watch the turtle trace the star pattern autonomously.
- Modify the turn angle to draw a hexagon, then a spiral—experiment with shapes by changing two parameters.
More in Robotics & Hardware
59micro:bit— First physical computing projects
62Arduino— Electronics projects with sensors and motors
66Gazebo— 3D robot simulation with sensor models
Free68Webots— Beginner-friendly robot simulation
Free70Tinkercad— 3D design and basic circuit simulation
Free60MakeCode— Block and text coding for micro:bit
FreeAI Analysis
Frameworks from the aiborg Handbook — powered by Claude