Guest User

Untitled

a guest
May 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def check_grid():
  2. while not robot.is_shutdown():
  3. print "robot position: (X:%.2f Y:%.2f)" % (x_robot, y_robot)
  4. if (-32.55 < x_robot < -24.35) and (-21.17 < y_robot < 20.16):
  5. print "Im in a grid 1..."
  6. else:
  7. print "Im out of a grid 1"
Add Comment
Please, Sign In to add comment