check if autonomouslife is already disabled in movements.py
This commit is contained in:
1 parent
cdd79392fd
commit
194f6cda9d
1 file changed
+1
@@ -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