py_trees.demos.either_or module
A py_trees demo.
- py_trees.demos.either_or.command_line_argument_parser() ArgumentParser
Process command line arguments.
- Returns:
the argument parser
- py_trees.demos.either_or.create_root() Behaviour
Create the root behaviour and it’s subtree.
- Returns:
the root behaviour
- py_trees.demos.either_or.description(root: Behaviour) str
Print description and usage information about the program.
- Returns:
the program description string
- py_trees.demos.either_or.epilog() str | None
Print a noodly epilog for –help.
- Returns:
the noodly message
- py_trees.demos.either_or.main() None
Entry point for the demo script.
- py_trees.demos.either_or.post_tick_handler(snapshot_visitor: SnapshotVisitor, behaviour_tree: BehaviourTree) None
Print data about the part of the tree visited.
- Args:
snapshot_handler: gather data about the part of the tree visited behaviour_tree: tree to gather data from
- py_trees.demos.either_or.pre_tick_handler(behaviour_tree: BehaviourTree) None
Print a banner with current tick count prior to ticking the tree.
- Args:
behaviour_tree: the tree to tick (used to fetch the count number)