ros / ros_tutorials

Code used in tutorials found on ROS wiki
http://wiki.ros.org/ros_tutorials
805 stars 540 forks source link

Turtle_teleop_key uses an inordinate amount of CPU #119

Closed mjeronimo closed 3 years ago

mjeronimo commented 3 years ago

Ubuntu 20.04 ROS 2 Rolling

Execute 'ros2 run turtlesim turtle_teleop_key' and view using 'top'. CPU utilization is very high. Reading the keyboard should be done in a more efficient manner.

sloretz commented 3 years ago

I see the same behavior - about 25% to 27% CPU as reported by top. The CPU usage seems the same whether I'm pressing keys or not.

clalancette commented 3 years ago

This was fixed by #121, so closing.