Ejemplo n.º 1
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.)
Ejemplo n.º 2
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.)
Ejemplo n.º 3
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
Ejemplo n.º 4
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
Ejemplo n.º 5
0
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.)
Ejemplo n.º 6
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 
Ejemplo n.º 7
0
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
Ejemplo n.º 8
0
def move():
    motion = ALProxy("ALMotion", nao_host, nao_port)
    motion.moveInit()
    motion.post.moveTo(1.5, 0, 0)
    return "Better start running!", 200
Ejemplo n.º 9
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
Ejemplo n.º 10
0
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
Ejemplo n.º 11
0
def move():
    motion = ALProxy("ALMotion", nao_host, nao_port)
    motion.moveInit()
    motion.post.moveTo(1.5, 0, 0)
    return "Better start running!", 200