|
Python YASMIN (Yet Another State MachINe)
|
Classes | |
| class | PublishIntState |
Functions | |
| str | check_count (Blackboard blackboard) |
| None | main () |
| str yasmin_demos.publisher_demo.check_count | ( | Blackboard | blackboard | ) |
Checks the current counter against a max threshold to determine state transition.
Args:
blackboard (Blackboard): The shared data store between states.
Returns:
str: The outcome string ('outcome1' or 'outcome2').
| None yasmin_demos.publisher_demo.main | ( | ) |
Main function to initialize ROS 2, configure logging, build the YASMIN state machine,
and execute it until the max_count is reached.
Args:
args (list, optional): Command-line arguments passed to rclpy.init().