Robotics and Middleware · Robotics framework
ROS 2
Robot Operating System 2
Also known as ROS2, ROS 2 Jazzy, ROS 2 Humble, ROS 2 Lyrical, Rolling Ridley
The second generation of the Robot Operating System: an open-source robotics framework whose nodes communicate through topics, services and actions over pluggable middleware (DDS/RTPS by default, with alternatives such as Zenoh) using configurable quality of service.
Explanation
ROS 2 was redesigned so that communication runs on industrial middleware rather than a custom protocol. Its ROS middleware interface (rmw) lets the same application code run on different implementations, such as eProsima Fast DDS (the default), Eclipse Cyclone DDS, RTI Connext DDS or Zenoh. Nodes discover each other in a distributed way instead of through a central master, and QoS policies tune reliability, history, durability and deadlines for each connection.
ROS 2 is released as distributions. Supported distributions listed in the documentation include Humble Hawksbill (end of life May 2027), Jazzy Jalisco (May 2029) and Lyrical Luth (released 22 May 2026, end of life May 2031), alongside the continuously updated Rolling distribution. Client libraries let nodes written in different languages, such as C++ and Python, communicate with each other.
ROS 2 was designed with real-time constraints in mind, but deterministic behaviour still needs a real-time operating system (for example Linux with PREEMPT_RT), no dynamic memory allocation or blocking in critical paths, and careful configuration. It is not a safety-certified product.
How it works
Developers write nodes that create publishers, subscriptions, service servers and clients, and action servers and clients. Interface definitions (.msg, .srv and .action files) are turned into language types and middleware type support. At runtime, the rmw layer maps ROS entities onto the chosen middleware, for example DDS DataWriters and DataReaders, handles discovery within a ROS domain, and delivers incoming data to the node's callbacks.
Automotive applications
- Automated-driving research stacks such as Autoware
- Sensor drivers, calibration and data recording
- Simulation and software-in-the-loop testing
- Robotics prototypes moving towards production
Example
An automated-shuttle prototype runs perception, localisation and planning as ROS 2 Jazzy nodes. Camera and LiDAR drivers publish with the sensor-data QoS profile, planning uses reliable QoS, and recordings from test drives are replayed to reproduce issues.
An illustrative example: any figures in it are worked numbers, not measurements.
References
- Distributions (ROS 2 documentation source) (opens in a new tab)
- Different ROS 2 middleware vendors (ROS 2 documentation source) (opens in a new tab)
- Understanding real-time programming (ROS 2 documentation source) (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.