Skip to main content

intrinsic.solutions.execution.Operation

Class representing an active operation in the executive.

name

Name of the operation.

done

Whether the operation has completed or not (independent of outcome).

proto

Proto representation.

metadata

RunMetadata for an active operation containing more state information.

Methods

find_tree_and_node_id

View source

Searches the tree in this Operation for a node with name node_name.

Args

node_name

Name of a node to search for in the tree.

Returns

A NodeIdentifierType referencing the tree id and node id for the node. The result can be passed to calls requiring a NodeIdentifierType.

Raises

solution_errors.NotFoundError if there is not behavior_tree. solution_errors.NotFoundError if not matching node exists. solution_errors.InvalidArgumentError if there is more than one matching node or if the node or its tree do not have an id defined.

find_tree_and_node_ids

View source

Searches the tree in this Operation for all nodes with name node_name.

Args

node_name

Name of a node to search for in the tree.

Returns

solution_errors.NotFoundError if there is not behavior_tree. A list of NodeIdentifierType referencing the tree id and node id for the node. The list contains information about all matching nodes, even if the nodes do not have a node or tree id. In that case the values are None.

update

View source

Update the operation by querying the executive.

update_from_proto

View source

Update information from a proto.