Target indication on dashboard

A couple years ago with Breakaway, WPI provided sample code to send the “target” vector info to the Dashboard and the video stream on the dashboard would overlay green outlines of the targets found. Does the Dashboard this year support similar feature? We can’t seem to find any info about this. We also do not find any sample code that is equivalent to the Breakaway sample code. If there is no such support this year, how do teams get feedback on the Dashboard on what targets are found? Since there are four potential targets, we need to give drivers feedback so they can pick which target to shoot.

BTW, we also looked into the new SmartDashboard and couldn’t even get the live video stream going. We “added” the “camera” object on the dashboard but it only shows a pink rectangle saying “no connection”. We have set the camera IP correctly (10.te.am.11) but it just doesn’t connect. Have anybody successfully gotten live stream on the new SmartDashboard? If SmartDashboard doesn’t work, we will stick with the old Dashboard. If it does work, does it support target outline overlay?

I accomplished this earlier,

http://www.chiefdelphi.com/forums/showthread.php?t=101153

You need to set your camera to allow anonymous viewing (available in the web console). And it does support target outlining, check out this square example:

http://firstforge.wpi.edu/integration/viewcvs/viewcvs.cgi/trunk/extensions/camera/SquareTracker/src/edu/wpi/first/wpilibj/examples/SquareTrackerExtension.java?root=smart_dashboard&system=exsy1002&view=markup

That dashboard with the overlays was probably the default one written in LV.

The Rectangular Target Processing example has some annotation code you can place into your dashboard. It is in the RT code, but turned off, and it defaults to being on for the My Computer version of the code.

It takes in the bounding box, scores, and other values, but you can easily strip out numbers and other code if you wish.

The key will be getting the data needed for the overlay from the robot back to the dashboard. The WPI libraries contain tools for this. And you will then need to extract the data in the dashboard and hook it to the overlay functions. If you look at the dashboard code from a couple years ago, this was done the same way, just in the default code.

Greg McKaskle

I am not sure I get what you said. Did you say the default Dashboard written in LabView does or does not support overlay? In other words, can we use that Dashboard unmodified or do we need to crack the LabView code and modify it to support rectangular target overlay? I hope we don’t have to modify it because we don’t really know LabView that well and we don’t even have LabView installed. The credit card USB memory thingy disappeared after passing around between the programming students, and everyone denied they have it :frowning: .

Where can I find this Rectangular Target Processing example? I looked at the VisionSample2012 project and that’s not it.

My understanding is that Dashboard Packer code in the WPI library is packaging data to send to the Dashboard. So the key is to understand if the Dashboard has code to expect array of target data and what format should the data be in? When you say “extract the data in the dashboard and hook it to the overlay functions”, it sounds like this is modifying the LV code in the Dashboard, right?

Find that example the sample place you find all the other LabVIEW examples:

Launch LabVIEW. Click the “Support” tab. Click the “Find FRC Examples…” link. Open “FRC Robotics”, then under that open “Vision”. You will find it there.

When you say “extract the data in the dashboard and hook it to the overlay functions”, it sounds like this is modifying the LV code in the Dashboard, right?

Right.

That’s why. I don’t have LabView installed. Need to find that credit card USB drive!