# autofsm **Repository Path**: zgggy/autofsm ## Basic Information - **Project Name**: autofsm - **Description**: A self-executing finite state machine framework. Register the variables and functions related to states and transitions, and allow it to run automatically. - **Primary Language**: C++ - **License**: AGPL-3.0 - **Default Branch**: reconstitution - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-02-12 - **Last Updated**: 2024-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: AI, state-machine, Robotics, ROS ## README # auto_finite_state_machine under progress... ## Usage 1. add `autofsm.h` to your project, then just `#include` it. 1. init the machine: 1. use `class YourObj`,`State` and all the `func_reg()`s to init the machine. 1. use `class YourObj`,`Machine(states, transitions)` and all the `func_reg()`s to init the machine. 1. use macro `fsm::make_machine()` to init the machine fastest. 1. `machine.process()` in `while(true)`.