コード例 #1
0
ファイル: GaitLearnStates.py プロジェクト: AmeenaK/nbites
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)
コード例 #2
0
ファイル: GaitLearnStates.py プロジェクト: bbellon/nbites
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)
コード例 #3
0
ファイル: GaitLearnStates.py プロジェクト: thiggins/nbites
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)