ros2_controllers
ros2_controllers copied to clipboard
Lock-free Write to Buffer
A long-standing shortcoming in the realtime_tools::RealtimeBuffer is an inability to provide lock-free writes from the RT context. (See https://github.com/ros-controls/realtime_tools/issues/14).
The joint_trajectory_controller
in particular is currently using writeFromNonRT()
within the RT loop due to this limitation. Either through an upstream change (maybe https://github.com/ros-controls/realtime_tools/pull/73? I haven't had a chance to look into it yet) or some restructuring of the JTC, we need a lock-free write.