Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")
Пример #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")