View Single Post
  #2   Spotlight this post!  
Unread 17-02-2011, 21:56
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision processing

If you know the location in the camera image of the pole you want to reach, and you know the location of "straight ahead" on the robot, you can compute the angle the robot needs to turn in order to aim for that pole.

If you know the height of the target in the camera image, you can compute the distance to the target using some simple trigonometry.

Use the turn angle and the drive distance to derive inputs to an Arcade Drive function.
Reply With Quote