We're pretty new to Java target tracking - we've started to play around with it this year! Most of our code uses the FRC 2013 Vision sample code, but we figured that it would be fine to use and build upon the example. (Unfortunately, we have not tried using it yet, since the mechanical guys are still working on building the robot!)
We have two Netbeans projects - RobotSeeRobotDo (clever, eh?) and RobotSeeRobotDoLite. RobotSeeRobotDo handles all the corner cases, while RobotSeeRobotDoLite ignores corner cases and greatly simplifies the code. I would be grateful if anyone can review the source and provide feedback!
http://code.google.com/p/frcbot4067/...obotSeeRobotDo
http://code.google.com/p/frcbot4067/...SeeRobotDoLite
Thanks in advance!
EDIT: RobotSeeRobotDo and RobotSeeRobotDoLite have been updated to fix a logic problem.