Python YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
yasmin_demos.publisher_demo Namespace Reference

Classes

class  PublishIntState
 

Functions

str check_count (Blackboard blackboard)
 
None main ()
 

Function Documentation

◆ check_count()

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').

◆ main()

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().