py_trees.demos.stewardship module
A py_trees demo.
- class py_trees.demos.stewardship.Finisher
Bases:
Behaviour
Gathers blackboard data from other behaviours and prints a summary.
To be used at the end of the tree run.
- class py_trees.demos.stewardship.PeriodicSuccess
Bases:
Periodic
Write the period from
Periodic
as a variable on the blackboard.
- class py_trees.demos.stewardship.SuccessEveryN
Bases:
SuccessEveryN
Add a blackboard counter to
SuccessEveryN
.- update() Status
Run the
SuccessEveryN
update and write to blackboard.- Returns:
Returns the
Status
ofSuccessEveryN
- py_trees.demos.stewardship.command_line_argument_parser() ArgumentParser
Process command line arguments.
- Returns:
the argument parser
- py_trees.demos.stewardship.create_tree() Behaviour
Create the root behaviour and it’s subtree.
- Returns:
the root behaviour
- py_trees.demos.stewardship.description() str
Print description and usage information about the program.
- Returns:
the program description string
- py_trees.demos.stewardship.epilog() str | None
Print a noodly epilog for –help.
- Returns:
the noodly message
- py_trees.demos.stewardship.main() None
Entry point for the demo script.
- py_trees.demos.stewardship.pre_tick_handler(behaviour_tree: BehaviourTree) None
Generate a simple pre-tick banner printing to stdout.