Skip to content

Behavior Trees

vultron.bt

vultron.bt.base

This package implements a basic Behavior Tree library.

vultron.bt.behaviors

This module provides the main Behavior Tree for the Vultron Protocol.

reset_statelog()

Empty the shared state log in place.

Clearing rather than rebinding keeps every importer of STATELOG (e.g. vultron.bt.base.demo.cvd) looking at the same list.

vultron.bt.fuzzer

This module provides behavior tree fuzzers

vultron.bt.states

Provides state management for the Vultron Behavior Tree

vultron.bt.errors

This module defines custom exceptions for the Vultron package.

vultron.bt.common

This module provides common Behavior Tree nodes for the Vultron package.

EnumStateTransition

Bases: BaseModel

Represents a transition between two states in an enum-based state machine

show_graph(node_cls)

Show the graph for the given node_cls

state_change(key, transition)

Factory method that returns a FallbackNode object that returns SUCCESS when the blackboard[key] starts in one of start_states and changes to end_state, and FAILURE otherwise

state_in(key, state)

Factory method that returns a ConditionCheck class that checks if the blackboard[key] == state

Parameters:

Name Type Description Default
key str

the blackboard key to check

required
state Enum

the state to check for

required

Returns:

Type Description
type[ConditionCheck]

A ConditionCheck class that checks if the blackboard[key] == state

to_end_state_factory(key, state)

Factory method that returns an ActionNode class that updates key to state.