ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The standard convention for controllers in the ROS ecosystem is to receive a full geometry_msgs/Twist message and use that to generate actuator commands. There is no standard way of selecting only some fields of the message as valid, while others are ignored. Your suggestion of forwarding velocities via messages between threads indeed sounds troublesome, as various race-conditions could result.
I see some viable approaches, for all some changes in the controller receiving the commands are required:
That´s my ideas, maybe others have others to offer? :)