py_trees.demos.ports.basic module

Minimal typed input/output ports with a single behaviour node.

class py_trees.demos.ports.basic.Multiply(name: str, **kwargs: Any)

Bases: BehaviourWithPorts

Read two floats and write their product.

classmethod input_ports() dict

Return the input port declarations.

classmethod output_ports() dict

Return the output port declarations.

update() Status

Multiply the two inputs and write the result to the output port.

py_trees.demos.ports.basic.main() None

Run a single-node demo with explicit key remapping.

py_trees.demos.ports.basic.seed_value(key: str, value: float) None

Write one value to an absolute blackboard key.