def right(event): d = event.char x = -1 y = -1 z = -2.25 robot.calculate_next_point(x, y, z) print("Go right")
def forward(event): z = event.char x = 0 y = 1 z = 2.25 robot.calculate_next_point(x, y, z) print("Go forward")
def left(event): q = event.char x = 1 y = 1 z = 2.25 robot.calculate_next_point(x, y, z) print("Go left")
def back(event): s = event.char x = 0 y = -1 z = -2.25 robot.calculate_next_point(x, y, z) print("Go back")
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")
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")
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")
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")
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")
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")