Behavior Events

These are the event_output events related to the behavior_tree.

Note

The advanced_behavior_tree is not supported by event_output/csv_event_output yet.

BTREE_NODE_CHILDREN

event_output Signature:

<time> <event> <file-path> <file-last-mod-time> <platform> <node-id> <node-name> <num-children> { <child-id> }

Signature Elements:

Field

Description

<time>

The current simulation time

<event>

The event name

<file-path>

Absolute path to the input file that defines this node

<file-last-mod-time>

A unique number used to indicate the last time the file was modified to detect differences between the event log and the input file

<platform>

Name of platform owner of the tree

<node-id>

Global unique id of this node

<node-name>

Name of the behavior node

<num-children>

Number of direct descendants of this node

<child-id>

Global unique id of child

BTREE_NODE_EXEC

event_output Signature:

<time> <event> <platform> <node-id> <node-name> <exec-state> { <failure-reason> }

Signature Elements:

Field

Description

<time>

The current simulation time

<event>

The event name

<platform>

Name of platform owner of the tree

<node-id>

Global unique id of this node

<node-name>

Name of the behavior node

<exec-state>

0 or 1. 0 if node failed precondition, 1 if the node was executed.

<failure-reason>

The reason the node failed the precondition, if given.

Note

If multiple failure reasons were provided, only the first one will be reported.