示例#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")