Files
JackBot/states/__init__.py
T
JackM323 8f93f90fb8 StopState implementation
Prevent hard Servo movements to Idle Position
2026-10-24 22:15:34 +02:00

15 lines
557 B
Python

"""
states/__init__.py - State Machine Initialization
"""
from states.State import State, STATE_REGISTRY
from states.IdleState import IdleState
from states.WalkingState import WalkingState, WalkingFourState
from states.StopState import StopState
# Register available state instances
STATE_REGISTRY["idle"] = IdleState()
STATE_REGISTRY["stopping"] = StopState()
STATE_REGISTRY["walking"] = WalkingState()
STATE_REGISTRY["walking_four"] = WalkingFourState()
__all__ = ["State", "STATE_REGISTRY", "IdleState", "StopState", "WalkingState", "WalkingFourState"]