Real-Time ROS 2 Without the Pain: A Real-Time Thread, Lock-Free Bridges and Tracing
A concept guide to the real-time thread plus lock-free bridge pattern for ROS 2 on Linux, covering scheduling, type adaptation, safe logging and tracing, based on the cactus-rt framework.
In this article
- What real time means for a robot
- The checklist nobody wants to repeat
- The architecture: one real-time thread, everything else outside
- Why the loop uses its own data types
- Logging and tracing without breaking the deadline
- Other pieces mentioned
- cactus-rt versus ros2_control
- Checklist for your own loop
- Our take: where this fits
- Further reading