py_trees.demos.eternal_guard module
A py_trees demo.
- py_trees.demos.eternal_guard.command_line_argument_parser() ArgumentParser
Process command line arguments.
- Returns:
the argument parser
- py_trees.demos.eternal_guard.create_root() Behaviour
Create the root behaviour and it’s subtree.
- Returns:
the root behaviour
- py_trees.demos.eternal_guard.description(root: Behaviour) str
Print description and usage information about the program.
- Returns:
the program description string
- py_trees.demos.eternal_guard.epilog() str | None
Print a noodly epilog for –help.
- Returns:
the noodly message
- py_trees.demos.eternal_guard.main() None
Entry point for the demo script.
- py_trees.demos.eternal_guard.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.eternal_guard.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)