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
424 stars 154 forks source link

move_base action: cancel previous goal if get_path fails upon receiving a new one #290

Closed corot closed 2 years ago

corot commented 2 years ago

Current behavior:

  1. send a valid goal with RViz
  2. while the robot goes there, send another goal to an invalid place, e.g. a wall
  3. get_path will fail, executing the recovery behaviors
  4. but robot will keep going to the original goal

https://user-images.githubusercontent.com/322610/150661159-d0a427c8-3150-4def-8bbd-f9f3e5fa2828.mp4

Not a big issue, but current is not the expected behavior:

  1. send a valid goal with RViz
  2. while the robot goes there, send another goal to an invalid place, e.g. a wall
  3. get_path will fail, executing the recovery behaviors
  4. robot stops and fail with a GetPathResult error

https://user-images.githubusercontent.com/322610/150661158-5aa3569f-f0a6-4646-9e81-27ee6eee8708.mp4

corot commented 2 years ago

I have pushed the fix on master by mistake :see_no_evil:, sorry https://github.com/magazino/move_base_flex/commit/a5c19cb8f3135679e4f8f36a9ec6123b121d69ab I don't think it's worth doing a push force to revert it, so @dorezyuk , @spuetz , can u make a postmortem review, just in case I need to revert it? Thanks!

spuetz commented 2 years ago

I have pushed the fix on master by mistake see_no_evil, sorry a5c19cb I don't think it's worth doing a push force to revert it, so @dorezyuk , @spuetz , can u make a postmortem review, just in case I need to revert it? Thanks!

looks good to me. -- Sebastian

dorezyuk commented 2 years ago

also good for me

corot commented 2 years ago

:relieved:

corot commented 2 years ago

Fixed with a5c19cb