Rclcpp_async: Header-only C++20 async/await for ROS 2
A developer creates a simpler way to write asynchronous robot code, avoiding complex callbacks.
A developer has released a prototype library that allows programmers to write asynchronous control software for ROS 2 robots using modern C++ features. It enables code that reads sequentially instead of with nested callbacks, reducing complexity and potential deadlocks. The header-only library works with standard executors and supports services, actions, and coroutine-aware synchronization primitives. It is a minimal alternative to more comprehensive libraries, focusing on a cleaner coding style inspired by Python's asyncio.
Why It Matters
This simplifies development for robotics engineers, making complex asynchronous logic easier to write and maintain.