Skip to main content

Module state_machine

Module state_machine 

Source
Expand description

State Machine implementation for Mission Planning

This module implements a finite state machine for robot behavior management. It provides a flexible framework for defining states, transitions, events, guards, and actions in robotics applications.

Ported from PythonRobotics Original author: Wang Zheng (@Aglargil)

Structs§

RobotBehavior
Demo robot behavior model
State
Represents a state in the state machine
StateMachine
Main State Machine implementation
Transition
Represents a transition in the state machine

Functions§

create_robot_state_machine
Create a demo robot state machine
demo_state_machine
Run a demo of the state machine

Type Aliases§

ActionFn
CallbackFn
Type alias for callback functions
GuardFn