robot now runs after the ball

This commit is contained in:
2018-06-03 13:40:00 +02:00
parent 908d7a88ad
commit d94b27db08
3 changed files with 36 additions and 141 deletions

View File

@@ -32,7 +32,7 @@ current_value = 0
global counter
counter=0
def move_to(old,y):
def move_to(front, side, angle):
motionProxy = ALProxy("ALMotion", nao_ip, nao_port)
postureProxy = ALProxy("ALRobotPosture", nao_ip, nao_port)
@@ -110,7 +110,8 @@ def move_to(old,y):
# PLOT_ALLOW = False
# Second call of move API
motionProxy.post.moveTo(0, 0.0, y)
motionProxy.post.moveTo(front, side, angle)
# motionProxy.waitUntilMoveIsFinished()
# get the second foot steps vector
# footSteps2 = []
@@ -119,12 +120,6 @@ def move_to(old,y):
#except Exception, errorMsg:
#print str(errorMsg)
#PLOT_ALLOW = False
motionProxy.setStiffnesses("Head", 0.7)
names = ["HeadYaw", "HeadPitch"]
fractionMaxSpeed = 0.05
angles=[0, 0]
motionProxy.setAngles(names,angles,fractionMaxSpeed)
def get_angle():