osrf / ros2_serial_example

72 stars 16 forks source link

Reduce the CPU usage of the bridge. #48

Closed clalancette closed 5 years ago

clalancette commented 5 years ago

By waking up every 1 ms to check for ROS work, we were using a lot of CPU time. Reduce it to 4 ms, which has a corresponding linear decrease in the amount of CPU time we use.

Signed-off-by: Chris Lalancette clalancette@openrobotics.org