Beispiel #1
0
def grab(robot):
    """
    Picks up the token infront of the robot, and pulls it inside
    """
    log(robot, "Picking Up Token.")
    close_arms(robot)
    sleep(0.2)

    raise_arms(robot)
    sleep(0.4)

    retract_arms(robot)
Beispiel #2
0
def grab(robot):
    """
    Picks up the token infront of the robot, and pulls it inside
    """
    log(robot, "Picking Up Token.")
    close_arms(robot)
    sleep(0.2)

    raise_arms(robot)
    sleep(0.4)

    retract_arms(robot)
Beispiel #3
0
def roll_marker(robot, option):
    if option == 1:
        raise_arms(robot, pos=65)
        sleep(0.4)
        move_straight(robot, -0.1)
    elif option == 2:
        raise_arms(robot, pos=60)
        sleep(1)
        retract_arms(robot, time_limit=0.8)
        sleep(0.7)
        open_arms(robot, pos=45)
        sleep(0.7)
        raise_arms(robot, pos=50)
        sleep(0.2)
        extend_arms(robot)
    elif option == 3:
        pass
Beispiel #4
0
def roll_marker(robot, option):
    if option == 1:
        raise_arms(robot, pos=65)
        sleep(0.4)
        move_straight(robot, -0.1)
    elif option == 2:
        raise_arms(robot, pos=60)
        sleep(1)
        retract_arms(robot, time_limit=0.8)
        sleep(0.7)
        open_arms(robot, pos=45)
        sleep(0.7)
        raise_arms(robot, pos=50)
        sleep(0.2)
        extend_arms(robot)
    elif option == 3:
        pass