ros-controls / ros_control

Generic and simple controls framework for ROS
http://wiki.ros.org/ros_control
BSD 3-Clause "New" or "Revised" License
469 stars 307 forks source link

Multithreaded read() write() in CombinedRobotHW #489

Open sonelu opened 3 years ago

sonelu commented 3 years ago

Hello,

At the moment the CombinedRobotHW read() and write() methods simply call sequentially the read() and write() of each of the robot HW interface included in the combined HW. In most of the cases the HW interfaces are independent and do not share resources (ex. use different communication ports, devices, etc.). One example could be a multi-bus Dynamixel or CAN chain operated on different serial ports.

In this case it might be beneficial to have the possibility to run the individual read() and write() methods each in their thread allowing for higher communication bandwidth with the devices.

Thanks.