Exemplo n.º 1
0
def setWalkVector(player, x, y, theta):
    """
    Use this guy because all the wrappings through Nav tend
    to reset our gait parameters
    """
    x_cms, y_cms, theta_degs = helper.convertWalkVector(player.brain, x, y, theta)

    walk = motion.WalkCommand(x=x_cms,y=y_cms,theta=theta_degs)
    player.brain.motion.setNextWalkCommand(walk)
Exemplo n.º 2
0
def setWalkVectorCustomGait(player, x, y, theta):
    """
    Use this method because all the wrappings through Nav will set the
    robot's gait to one of our predefined values
    """
    x_cms, y_cms, theta_degs = helper.convertWalkVector(player.brain, x, y, theta)

    walk = motion.WalkCommand(x=x_cms,y=y_cms,theta=theta_degs)
    player.brain.motion.setNextWalkCommand(walk)
Exemplo n.º 3
0
def setWalkVectorCustomGait(player, x, y, theta):
    """
    Use this method because all the wrappings through Nav will set the
    robot's gait to one of our predefined values
    """
    x_cms, y_cms, theta_degs = helper.convertWalkVector(
        player.brain, x, y, theta)

    walk = motion.WalkCommand(x=x_cms, y=y_cms, theta=theta_degs)
    player.brain.motion.setNextWalkCommand(walk)