def moveBody(robotIP): print "movebody" motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() #motion.post.moveTo(0.5, 0, 0) #motion.post.moveTo(0.0,0.25,0) motion.post.moveTo(0.80,0.0,0.)
def moveBody(robotIP): print "movebody" motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() #motion.post.moveTo(0.5, 0, 0) #motion.post.moveTo(0.0,0.25,0) motion.post.moveTo(0.80, 0.0, 0.)
def moveBodyAndTalk(robotIP): try: motion = ALProxy("ALMotion", robotIP, 9559) #tts = ALProxy("ALTextToSpeech", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(0.5, 0, 0) speakFunction("Hi, my name is Nao. Now Foward Motor Movement is Enabled") except Exception, e: print e
def moveBodyAndTalk(robotIP): try: motion = ALProxy("ALMotion", robotIP, 9559) #tts = ALProxy("ALTextToSpeech", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(0.5, 0, 0) speakFunction( "Hi, my name is Nao. Now Foward Motor Movement is Enabled") except Exception, e: print e
def moveBody(robotIP): print "movebody" #from naoqi import ALProxy ## try: ## motion = ALProxy("ALMotion", robotIP, 9559) ## motion.moveInit() ## motion.moveTo(0.5, 0, 0) ## except Exception, e: ## print e # motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() #motion.post.moveTo(0.5, 0, 0) #motion.post.moveTo(0.0,0.25,0) motion.post.moveTo(0.80, 0.0, 0.)
def moveBodyStepBKW(robotIP): motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(-0.25,0.0,-0.0)# STEP
def moveBodyRotateRight(robotIP): motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(0.0,0.0,-0.8)# ROTATE LEFT
def move(): motion = ALProxy("ALMotion", nao_host, nao_port) motion.moveInit() motion.post.moveTo(1.5, 0, 0) return "Better start running!", 200
def moveBodyStepBKW(robotIP): motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(-0.25, 0.0, -0.0) # STEP
def moveBodyRotateRight(robotIP): motion = ALProxy("ALMotion", robotIP, 9559) # Set NAO in Stiffness On StiffnessOn(motion) motion.moveInit() motion.post.moveTo(0.0, 0.0, -0.8) # ROTATE LEFT