refactored the code, fixed config bug

This commit is contained in:
Pavel Lutskov
2019-02-08 16:42:48 +01:00
parent 949f657a75
commit 8861d215c5
11 changed files with 1022 additions and 1064 deletions

View File

@@ -5,9 +5,8 @@ from time import sleep
import rospy
import tf
from naoqi import ALProxy
from masterloop import inform_masterloop_factory
from masterloop import inform_masterloop_factory, mp
FW = None
@@ -60,9 +59,6 @@ if __name__ == '__main__':
global_init()
rospy.wait_for_service('inform_masterloop')
ll = tf.TransformListener()
mp = ALProxy('ALMotion', os.environ['NAO_IP'], 9559)
mp.wakeUp()
mp.moveInit()
mp.setMoveArmsEnabled(False, False)
while not rospy.is_shutdown():