ROS (Robot Operating System)
ROS is not a traditional operating system but a framework (middleware) for robot programming. A robot program is composed of independent nodes that exchange messages.
How It Works
- Nodes — individual programs: camera drivers, motor controllers, planners;
- Topics — message buses between nodes (e.g.,
/cmd_velfor velocity); - Services and Actions — requests and long-running tasks.
ROS1 vs ROS2
| ROS1 | ROS2 | |
|---|---|---|
| Communication | Custom protocol | DDS |
| Real-time | Weak | Better |
| Industry | Outdated | Standard |
Why It Is Needed
Pre-built packages for SLAM, navigation, lidar drivers, and cameras. Manufacturers like Unitree and Boston Dynamics provide SDKs on top of ROS2.