Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from robot_movement import calculate_linear_velocity as linear_mvmt
- import cv2
- while 1:
- key = cv2.waitKey(50)
- if key & 0xFF == ord('w'):
- linear_mvmt(90)
- elif key & 0xFF == ord('a'):
- linear_mvmt(180)
- elif key & 0xFF == ord('d'):
- linear_mvmt(0)
- elif key & 0xFF == ord('s'):
- linear_mvmt(270)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement