Limiting Cycle To At Most One Transition - prior_state or last_transition variable? #287
Closed
slowrunner
started this conversation in
Ideas
Replies: 1 comment
-
Hi, starting from 1.0.0 you can add the parameter This helps? Closing as this is stale for a while. Feel free to reach out if you have any other questions. Best! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Brooks 84 "Subsumption Architecture For Mobile Robots" describes a hierarchy of robot behaviors as layers of state machines.
I would like to limit a machine "cycle" to 0-1 transition.
In the current python-statemachine implementation with
a loop on statemachine.cycle() will "free run" until no transitions are possible.
If the statemachine maintained a "prior_state" variable or "last_transition" variable, then I could add a check in each on_enter_stateXYZ() to ensure entry is a "reentry" or the null/cycle transition. This would allow limiting the cycle to 0-1 transitions.
Lacking this, I could
This is a bit cluttered, but allows the existing python-statemachine package to work for my purposes.
Beta Was this translation helpful? Give feedback.
All reactions