magazino / move_base_flex

Move Base Flex: a backwards-compatible replacement for move_base
https://uos.github.io/mbf_docs/
BSD 3-Clause "New" or "Revised" License
422 stars 154 forks source link

Implement service to force update the costmaps #340

Closed siferati closed 6 months ago

siferati commented 7 months ago

Description

Added a new service force_update_costmaps to force an update to happen NOW.

Bonus: fixed description of clear_costmaps service -- I guess it was a mistake from copy-pasting.

Testing

> rosservice call /move_base_flex/force_update_costmaps "{}"

Demo

Note that in the video I set the update frequency to 0, so in order for rviz to reflect the change I need to re-toggle the subscribers. But you can see how the footprint immediately updates to the new position.

https://github.com/magazino/move_base_flex/assets/15384781/1bbfb213-78ad-4349-a14c-78823f1f96e6