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
@@ -1,4 +1,4 @@
import RobotState
from RobotState.RobotState import RobotState
class IdleState(RobotState):
def update(self, ctx, intent, dt):