View Single Post
  #2   Spotlight this post!  
Unread 13-01-2011, 22:26
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: FRC 2011 Vision Tracking

Are you going to stick with labview, or are you open to java. If you are open to java I can help you get started with the vision tracking. WPIlib has a lot of support for the camera. Basically you calibrate the camera to see the target, and then it return the the size, x, and y of the target. You can use all three of these to approach the target.

You say you have servos, but I think a static camera may be easier to use. You do not need the camera moving around to use it, especially not for this game. It will only complicate things.

Use the y to tell how far you are from the target and the x to center your robot (having the ability to strafe helps a lot here) I would recommend putting your robot at the distance it needs to be to cap and then mount the camera so the bottom target is at the top of the image.

Look at 2009's sample labview code, there may be a tracker in there. The code for that year tracked two colors, but it can be adjusted to track one. I know in java is the tracker sample, labview may be different
__________________
"Never let your schooling interfere with your education" -Mark Twain

Last edited by mwtidd : 13-01-2011 at 22:33.
Reply With Quote