CANopen Drive States and the ros2_control Hardware Lifecycle
A plain guide to lining up CANopen drive states, heartbeat and PDO traffic with the ros2_control hardware lifecycle so torque only exists when active.
In this article
- Two layers people often mix up
- What ros2_control wants from hardware
- The CANopen message types, by job
- Heartbeat: the producer and the consumer
- The drive state machine (CiA 402)
- Lining the two machines up
- A worked example (illustrative numbers)
- Do you even need ros2_control?
- Wiring and bring-up basics
- Common mistakes
- Checklist