Robotics StackExchange | Archived questions

Sending an action to change to any SMACH state

I am using SMACH to create state machines. Suppose I have a state that is currently executing, I would like to find a way to switch from that state to any other state I specify at any time by sending an action. What are the appropriate ways of doing this?

Asked by mr-hudson on 2017-06-04 13:55:16 UTC

Comments

Not an answer, but: I'm not sure state machines are supposed to work like that. How would you see "switch from that state to any other state" working if there are no transitions between your current and target state?

Asked by gvdhoorn on 2017-06-07 00:57:16 UTC

Answers