check if autonomouslife is already disabled in movements.py
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user