yasmin_demos.monitor_demo module
- class yasmin_demos.monitor_demo.PrintOdometryState(*args: Any, **kwargs: Any)
Bases:
MonitorStateMonitorState subclass to handle Odometry messages.
This state monitors Odometry messages from the specified ROS topic, logging them and transitioning based on the number of messages received.
- monitor_handler(blackboard: yasmin.Blackboard, msg: nav_msgs.msg.Odometry) str
Handles incoming Odometry messages.
This method is called whenever a new Odometry message is received. It logs the message, decrements the count of messages to process, and determines the next state outcome.
- Args:
blackboard (Blackboard): The shared data storage for states. msg (Odometry): The incoming Odometry message.
- Returns:
- str: The next state outcome, either “outcome1” to continue
monitoring or “outcome2” to transition to the next state.
- Exceptions:
None
- yasmin_demos.monitor_demo.main() None