Describe the bug
When starting the glim_rosnode.launch file and not feeding it any data (so it just sits there idling around), it the process consumes a full CPU core. This is due to ros::spinOnce() getting called without a wait/sleep inbetween.
To Reproduce
Run roslaunch glim_ros glim_rosnode.launch
Observe CPU consumption using top or another tool. It will show the GLIM process at 100%
Expected behavior
When the process is idling it should consume low ( < ~5%) CPU.
Environment (please complete the following information):
Ubuntu 18.04/melodic/no CUDA (yes, I had to do some mods to make things compile, but this issue should be unaffected by that)
Describe the bug When starting the
glim_rosnode.launch
file and not feeding it any data (so it just sits there idling around), it the process consumes a full CPU core. This is due toros::spinOnce()
getting called without a wait/sleep inbetween.To Reproduce
roslaunch glim_ros glim_rosnode.launch
top
or another tool. It will show the GLIM process at 100%Expected behavior When the process is idling it should consume low ( < ~5%) CPU.
Environment (please complete the following information):