Liking cljdoc? Tell your friends :D

cark.behavior-tree.state-machine

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.
raw docstring

end-stateclj/s

(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.
sourceraw docstring

enter-eventclj/s

(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.
sourceraw docstring

eventclj/s

(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.
sourceraw docstring

event-argclj/s

(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
sourceraw docstring

logclj/s

(log value)
source

makeclj/s

(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.
sourceraw docstring

stateclj/s

(state name & events)

Creates a state, with its associated events

Creates a state, with its associated events
sourceraw docstring

transitionclj/s

(transition new-state)

Transitions to some state, another one or the same.

Transitions to some state, another one or the same.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close