check if autonomouslife is already disabled in movements.py

This commit is contained in:
Jonas
2018-06-04 10:22:49 +02:00
parent cdd79392fd
commit 194f6cda9d

View File

@@ -8,6 +8,7 @@ class NaoMover(object):
self.mp = ALProxy('ALMotion', nao_ip, nao_port)
self.pp = ALProxy('ALRobotPosture', nao_ip, nao_port)
ap = ALProxy("ALAutonomousLife", nao_ip, nao_port)
if ap.getState()!="disabled":
ap.setState('disabled')
self.set_head_stiffness()
self.set_hand_stiffness()