fixed walk startup toppling by removing startup animation
This commit is contained in:
+2
-8
@@ -521,19 +521,13 @@ class NaoTeleop:
|
|||||||
self.last_batt_check = now
|
self.last_batt_check = now
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
print("🤖 Waking up...")
|
print("🤖 Enabling stiffness (no wakeUp stand-up)...")
|
||||||
self.motion.wakeUp()
|
self.motion.setStiffnesses("Body", 1.0)
|
||||||
|
|
||||||
print("🚶 Going to StandInit...")
|
|
||||||
self.posture.goToPosture("StandInit", 0.5)
|
|
||||||
|
|
||||||
# Enable walk arms BEFORE forcing stiffness
|
# Enable walk arms BEFORE forcing stiffness
|
||||||
print("💪 Enabling walk arms...")
|
print("💪 Enabling walk arms...")
|
||||||
self.motion.setMoveArmsEnabled(True, True)
|
self.motion.setMoveArmsEnabled(True, True)
|
||||||
|
|
||||||
# Give robot time to initialize motors
|
|
||||||
time.sleep(1.0)
|
|
||||||
|
|
||||||
# Force relaxed stiffness AFTER engine is active
|
# Force relaxed stiffness AFTER engine is active
|
||||||
self.motion.setStiffnesses(["RArm", "LArm"], 0.3)
|
self.motion.setStiffnesses(["RArm", "LArm"], 0.3)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user