Skip to main content

intrinsic.solutions.behavior_tree.SubTree

A BT node of type SubTree for behavior_tree_pb2.SubTreeNode.

Inherits From: Node

This node is usually used to group components into a subtree.

behavior_tree

behavior tree or root node of a tree for this subtree. If passing a root node you must also provide the name argument.

name

name of the behavior tree, if behavior_tree is a node, i.e., a root node of a tree; otherwise, the name of this node.

behavior_tree

The subtree, a BehaviorTree object.

name

The name of the subtree node.

proto

The proto representation of the node.

node_type

A string label of the node type.

breakpoint

decorators

execution_mode

node_id

Methods

create_from_proto

View source

Instantiates a Node instance from a proto.

disable_execution

View source

Disables a node, so that it is not executed and appears to be skipped.

Args

result_state

Optionally force the result of the execution to this state. If not set, the resulting state is automatically determined, so that the node is skipped.

Returns

Builder pattern, returns self.

dot_graph

View source

Converts the given subtree into a graphviz dot graph.

The edge goes from parent to the root node of the subtree.

Args

node_id_suffix

A little string with the suffix to make the given node unique in the dot graph.

Returns

A tuple of graphviz dot graph representation of the full subtree and the name of the subtree's root node.

enable_execution

View source

Enables a node, so that it will be executed.

Returns

Builder pattern, returns self.

generate_and_set_unique_id

View source

Generates a new random id and sets it for this node.

set_behavior_tree

View source

Sets the subtree's behavior tree.

Args

behavior_tree

behavior tree or root node of a tree for this subtree. If passing a root node you must also provide the name argument.

name

name of the behavior tree, if behavior_tree is a node, i.e., a root node of a tree; otherwise, the name of this node.

Returns

self for chaining.

set_breakpoint

View source

Sets the breakpoint type on the decorator.

Args

breakpoint_type

desired breakpoint type, None to remove type.

Returns

Builder pattern, returns self.

set_decorators

View source

show

View source

visit

View source