Skip to main content

Crate behaviortree_core

Crate behaviortree_core 

Source
Expand description

Core implementation of behaviortree.

§behaviortree-core

behaviortree-core is the foundational crate of behaviortree. It defines the core traits, data structures, built-in control-flow behaviors, tree runtime, and XML export. It does not contain the factory/parser (see behaviortree-factory) or the optional feature-gated behaviors (see behaviortree-behaviors).

Re-exports§

pub use behavior_data::BehaviorData;
pub use behavior_description::BehaviorDescription;
pub use behavior_kind::BehaviorKind;
pub use behavior_state::BehaviorState;
pub use behavior_traits::Behavior;
pub use behavior_traits::BehaviorExecution;
pub use behavior_traits::BehaviorRegistry;
pub use error::Error;
pub use pre_post_conditions::POST_CONDITIONS;
pub use pre_post_conditions::PRE_CONDITIONS;
pub use tree::observer::tree_observer::BehaviorTreeObserver;
pub use tree::BehaviorTree;
pub use tree::BehaviorTreeElement;
pub use tree::BehaviorTreeElementList;
pub use tree::TreeElementKind;
pub use tree::BehaviorTreeMessage;
pub use tree::observer::groot2::connector_data::Groot2ConnectorData;
pub use xml::creator::XmlCreator;
pub use tree::observer::groot2::connector_std::Groot2Connector;

Modules§

behavior_data
Built-In behaviors of behaviortree.
behavior_description
BehaviorDescription implementation.
behavior_kind
BehaviorKind
behavior_state
BehaviorState
behavior_traits
Core behavior traits.
behaviors
Core behaviors of a behaviortree which are always available.
error
behaviortree behavior errors
pre_post_conditions
PreConditions and PostConditions implementation.
tree
behaviortree tree module.
xml
behaviortree xml module.

Macros§

create_port_array
Creates an array of ports.
port_array_init
Creation macro for PortArray init function
register_scripting_enum
Macro to register enums for scripting. Enum must derive ScriptEnum. It is also possible to register discrete value(s).

Constants§

ACTION
BehaviorKind literal “Action”
AUTOREMAP
Literals for scripting ports
CONDITION
BehaviorKind literal “Condition”
CONTROL
BehaviorKind literal “Control”
DECORATOR
BehaviorKind literal “Decorator”
DEFAULT
Literal “default” for ports etc.
EMPTY_STR
Often needed empty str
FAILURE
BehaviorState literal “Failure”
FAILURE_IF
ID
Literal “ID” for ports etc.
IDLE
BehaviorState literal “Idle”
NAME
Literal “name” for ports etc.
ON_FAILURE
ON_HALTED
ON_SUCCESS
POST
RUNNING
BehaviorState literal “Running”
SKIPPED
BehaviorState literal “Skipped”
SKIP_IF
SUBTREE
BehaviorKind literal "SubTree"
SUCCESS
BehaviorState literal “Success”
SUCCESS_IF
WHILE

Type Aliases§

Arc
BehaviorCreationFn
Type alias for a behavior creation function
BehaviorPtr
Pointer to a behavior.
BehaviorResult
Result type definition for behaviors.
BehaviorTickCallback
BehaviorData state change callback signature.
Mutex
RwLock
RwLockReadGuard
RwLockWriteGuard