Skip to main content

Task node

Task node representation

The task node is used to invoke an action. The resulting state machine is equivalent to the current action execution.

Properties

PropertyDescription
Child semanticsCan only be leaf node, cannot have any children.
Parametersname: name of the node
action: an action proto describing a skill invocation
Success criterionAssociated action succeeds
Failure criterionAssociated action fails

Python API

All nodes accept actions directly and are wrapped into task nodes internally. However, using Task nodes explicitly allows you to name the nodes and add decorators on them.

enable_motion_skill = skills.enable_motion(clear_faults=True)
enable = BT.Task(name="Enable motion", action=enable_motion_skill)