ROS 2 Executors and Callback Groups: Why Your Service Call Deadlocks and How to Fix It
A guide to ROS 2 executors and callback groups: single and multi-threaded executors, mutually exclusive and reentrant groups, the nested service-call deadlock, and the newer events and async options.
In this article
- What an executor does
- Callback groups set the rules
- The deadlock
- Rules that prevent most problems
- Newer executors and async options
- Concepts: why messages are not delivered directly
- Debugging a hang