To reproduce, set shutdown_costmaps to true, as this introduce a delay between the exe_path goal reception and the execution.
If you send a cancel soon (<100ms) after the goal, we will set the cancel_ flag to true here, but then the execution start reset it to false here.
I tried to remove these 3 lines under "reset the member vars" and now cancel works regardless of how fast u send it after the goal. I think these lines are not needed, as we create a new execution object each time. @spuetz, can u confirm?
To reproduce, set shutdown_costmaps to true, as this introduce a delay between the exe_path goal reception and the execution.
If you send a cancel soon (<100ms) after the goal, we will set the cancel_ flag to true here, but then the execution start reset it to false here.
I tried to remove these 3 lines under "reset the member vars" and now cancel works regardless of how fast u send it after the goal. I think these lines are not needed, as we create a new execution object each time. @spuetz, can u confirm?