Provides a state-machine implementation as a client library to the behavior tree library. Some book keeping data will thus be stored in the blackboard.
This merely creates a hiccup tree, that will then need to be compiled and used like a regular behavior tree.
Provides a state-machine implementation as a client library to the behavior tree library. Some book keeping data will thus be stored in the blackboard. This merely creates a hiccup tree, that will then need to be compiled and used like a regular behavior tree.
(end-state name)
(end-state name node)
Creates an end state. While this node returns a failure, the state machine will succeed.
Creates an end state. While this node returns a failure, the state machine will succeed.
(enter-event node)
Creates an enter event in the hiccup tree, triggering as soon as its parent node is transitioned to. This also trigger when transitioning from the same state, but not when another event of the same state is triggered.
Creates an enter event in the hiccup tree, triggering as soon as its parent node is transitioned to. This also trigger when transitioning from the same state, but not when another event of the same state is triggered.
(event name node)
Creates an event in the hiccup tree. Once the event is triggered, the provided node will be executed.
Creates an event in the hiccup tree. Once the event is triggered, the provided node will be executed.
(event-arg ctx)
This context function returns the argument of its closest parent event
This context function returns the argument of its closest parent event
(make path initial-state & states)
Creates the hiccup for a state machine. Its data will be stored in the black board at the specified path. Upon entering this node, the initial state will directly be activated.
Creates the hiccup for a state machine. Its data will be stored in the black board at the specified path. Upon entering this node, the initial state will directly be activated.
(state name & events)
Creates a state, with its associated events
Creates a state, with its associated events
(transition new-state)
Transitions to some state, another one or the same.
Transitions to some state, another one or the same.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close