Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def check_grid():
- while not robot.is_shutdown():
- print "robot position: (X:%.2f Y:%.2f)" % (x_robot, y_robot)
- if (-32.55 < x_robot < -24.35) and (-21.17 < y_robot < 20.16):
- print "Im in a grid 1..."
- else:
- print "Im out of a grid 1"
Add Comment
Please, Sign In to add comment