How to run rotate_recovery and clear_costmap_recovery behavior in python?
I am currently writing a SMACH state machine in Python, which contains a "recovery" state. When SimpleActionState outputs "aborted", the state machine will enter this recovery state. I want to execute the recovery behavior, but I didn't find documentation of how to do that in Python. For rotate_recovery, for example, its documentation uses C++ API.
The reason I want to have a recovery state is that currently if the recovery behavior fails, the robot will not keep trying, and just stuck there. Instead, I want the robot to keep trying recovery behavior when it fails.
I really appreciate your help.