How to cancel a move_base goal using smach SimpleActionState?
Hello,
I am using smach with a SimpleActionState to send navigation goals to move_base with:
StateMachine.add('GO_TO_DOCKING_ZONE',SimpleActionState('move_base',MoveBaseAction, goal_cb = goal_callback, result_cb=goToDocking_result_cb),transitions = {'succeeded':'IR_MONITOR'})
And I would like to cancel this goal. I know that the way to do that is with cancel_goal function, but I do not how to call it using smach.
Any suggestions?
Best regards,
Teresa
Hello Teresa, I have the same question, I want to cancel a goal when the robot "finds" something, did you get any solution?