New Vision sample program

There is a new vision sample program included with the latest update of WPILibJ (just posted on the update site). Also, in the WPILib project, Documents section, there is a paper describing how it works. In addition, also in the Documents section, there are some sample images to play with and a Vision Assistant script that was used to create the sample code.

Please provide some feedback on this sample and the paper.

Brad

This has already helped us a lot. Our team had been struggling for quite a while trying to figure out how to track but the paper and the sample code simplified it drastically! Thanks a bunch!

Can you please provide a link to the update site you are referring to?

Thanks

There was a thread about this but here http://firstforge.wpi.edu/sf/frs/do/viewRelease/projects.wpilib/frs.2012_java_update_for_frc.2012_frc_update_netbeans_modules

I’ve found the sample code but I can’t find the document. Could someone provide the link?

Edit: Never mind, found it at http://firstforge.wpi.edu/sf/go/doc1304?nav=1

Will the Eclipse plugin be updated, too?

Thanks, Brad - this is very helpful. We are still in the process of figuring out whether we want to do onboard or offboard image processing, but at least with this update, doing it onboard is a viable option!

If we use a red led ring, the sample code should work, correct? There is nothing we have to change for it to run correctly? We are having some trouble getting it to work…

I shot the images with a red ring light. Did you get it to work with the image downloaded into the cRIO and not using the camera?

Also, what problem are you having?

Brad

In regards to the earlier Eclipse question, the plug-ins will soon be updated to include this sample

Would anyone be able to suggest a light ring to use? This could be extremely useful but my team does not currently have a light ring.

We got ours from AndyMark for 8 credits each.

I don’t seem to be able to download the “Detecting Vision Targets in C++ and Java” PDF from FirstForge.

Reasons?

Doc

You can also get them here: http://www.superbrightleds.com/cgi-bin/store/index.cgi?action=DispPage&Page2Disp=%2Fmini_tubes.htm

Use the angel eye lights. For extra brightness you can get two sizes and nest them.

Brad

Did you look here: http://firstforge.wpi.edu/sf/go/doc1304?nav=1

Brad

I have a question regarding the sample program, given that we have an image, what’s to do with it? How can I begin to translate the image into motor movement?

are there javadocs for the new code?

We base our movement off of center_mass_x_normalized.

Some of the methods involved seem to not be setup for javadocs.

Is there a Netbeans plugin update? So far it looks like the CriteriaCollection, which is used in the Java sample code, doesn’t exist.

The plugin update came at the same time as the new sample.
If your Netbeans isn’t set to update every startup/day, go into the Plugins and Reload the updates page.