when planner_frequency > 0 the replanning thread would never sleep and thus cause CPU load of 100%.
This fix makes sure there is always an update_period.sleep() in the loop.
This reduces the load of mbf_costmap_navigation to 8% in my case, without any different behavior.
when
planner_frequency > 0
the replanning thread would never sleep and thus cause CPU load of 100%. This fix makes sure there is always anupdate_period.sleep()
in the loop.This reduces the load of mbf_costmap_navigation to 8% in my case, without any different behavior.