Ask Your Question

Revision history [back]

How do I determine which direction/angle the robot is facing?

I am building a robot that can play soccer. I have a webcam set up on the top of a canopy. The webcam is used to record the locations of the robot and the ball. I am having difficulty figuring out how to determine which direction the robot is facing by using the webcam. For example, the robot needs to move forward. How does it know which direction is forward?