py_trees.demos.logging module

A py_trees demo.

images/logging.gif
py_trees.demos.logging.command_line_argument_parser() ArgumentParser

Process command line arguments.

Returns:

the argument parser

py_trees.demos.logging.create_tree() Behaviour

Create the root behaviour and it’s subtree.

Returns:

the root behaviour

py_trees.demos.logging.description(root: Behaviour) str

Print description and usage information about the program.

Returns:

the program description string

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

Print a noodly epilog for –help.

Returns:

the noodly message

py_trees.demos.logging.logger(snapshot_visitor: DisplaySnapshotVisitor, behaviour_tree: BehaviourTree) None

Log the tree (relevant parts thereof) to a yaml file.

Use as a post-tick handler for a tree.

py_trees.demos.logging.main() None

Entry point for the demo script.