Esempio n. 1
0
def right(event):
    d = event.char
    x = -1
    y = -1
    z = -2.25
    robot.calculate_next_point(x, y, z)
    print("Go right")
Esempio n. 2
0
def forward(event):
    z = event.char
    x = 0
    y = 1
    z = 2.25
    robot.calculate_next_point(x, y, z)
    print("Go forward")
Esempio n. 3
0
def left(event):
    q = event.char
    x = 1
    y = 1
    z = 2.25
    robot.calculate_next_point(x, y, z)
    print("Go left")
Esempio n. 4
0
def back(event):
    s = event.char
    x = 0
    y = -1
    z = -2.25
    robot.calculate_next_point(x, y, z)
    print("Go back")
Esempio n. 5
0
def right(event):
    d=event.char
    x=1
    y=0
    z=6
    mt=3  
    robot.calculate_next_point(x,y,z,mt)
    #robot.set_goal_position()
    print("Go right")
Esempio n. 6
0
def forward(event):
    z = event.char
    x = 0
    y = 1
    z = 2.25
    mt = 0
    robot.calculate_next_point(x, y, z, mt, 0)
    #robot.set_goal_position()
    print("Go forward")
Esempio n. 7
0
def left(event):
    q = event.char
    x = 1
    y = 0
    z = 6
    mt = 2
    robot.calculate_next_point(x, y, z, mt)
    #robot.set_goal_position()
    print("Go left")
Esempio n. 8
0
def back(event):
    s = event.char
    x = 0
    y = 1
    z = 2.25
    mt = 1
    robot.calculate_next_point(x, y, z, mt)
    #robot.set_goal_position()
    print("Go back")
Esempio n. 9
0
def forward():
    mt = 0
    x = 0
    y = 1
    z = 2.25
    #robot.next_point(x,y,z,mt)
    robot.calculate_next_point(x, y, z, mt, b_offset=0)
    robot.set_goal_position1()
    robot.calculate_next_point(x, y, z, mt, b_offset=1)
    robot.set_goal_position2()
    print("Go forward")
Esempio n. 10
0
def back(event):
    s=event.char 
    x=0
    y=-1
    z=-2.25
    mt=1
    robot.calculate_next_point(x,y,z,mt,b_offset=0)
    robot.set_goal_position1()
    robot.calculate_next_point(x,y,z,mt,b_offset=1)
    robot.set_goal_position2()
    print("Go back")