py_trees.demos.blackboard module

A py_trees demo.

images/blackboard_demo.png

Console Screenshot

class py_trees.demos.blackboard.BlackboardWriter(name: str)

Bases: Behaviour

Write some more interesting / complex types to the blacbkoard.

update() Status

Write a dictionary to the blackboard.

This beaviour always returns SUCCESS.

class py_trees.demos.blackboard.Nested

Bases: object

A more complex object to interact with on the blackboard.

class py_trees.demos.blackboard.ParamsAndState(name: str)

Bases: Behaviour

Parameter and state storage on the blackboard.

This behaviour demonstrates the usage of namespaces and multiple clients to perform getting and setting of parameters and state in a concise and convenient manner.

initialise() None

Initialise speed from the stored parameter variable on the blackboard.

update() Status

Check speed and either increment, or complete if it has reached a threshold.

Returns:

RUNNING if incrementing, SUCCESS otherwise.

py_trees.demos.blackboard.command_line_argument_parser() ArgumentParser

Process command line arguments.

Returns:

the argument parser

py_trees.demos.blackboard.create_root() Behaviour

Create the root behaviour and it’s subtree.

Returns:

the root behaviour

py_trees.demos.blackboard.description() str

Print description and usage information about the program.

Returns:

the program description string

py_trees.demos.blackboard.epilog() str | None

Print a noodly epilog for –help.

Returns:

the noodly message

py_trees.demos.blackboard.main() None

Entry point for the demo script.