Interrupt or hold the execution of a state
Is there a nice way to interrupt or hold the execution of state in Smach? For example the robot is doing some task (actions) and suddenly the light is turned off. The robot stops moving and waits until the light is on again and if it takes too long the robot cancels its tasks and goes back to the idle state. I don't remember seeing anything similar in Smach tutorials.