Add copy methods, fix state imports, pass lock

Add copy() to PosArray, DegArray and RadArray to allow easy shallow copies. Change RobotState imports in idle.py and walking.py to use explicit 'from RobotState.RobotState import RobotState' to avoid import issues. In main.py create a threading.Lock and pass it into the controller thread args to prepare for synchronized access in controller_loop.
This commit is contained in:
2026-07-29 22:17:28 +02:00
parent fa6b0fd624
commit 1e660fcdb6
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import numpy as np
import config as cfg
import kinematics as kin
import DataTypes as dt
import RobotState
from RobotState.RobotState import RobotState
class WalkingState(RobotState):