Go to Post No one said that this would be easy. And if they did, they were obviously refering to a little red button from Staples and not to FIRST. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-02-2012, 21:13
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
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?
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2012, 21:51
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Target indication on dashboard

Quote:
Originally Posted by mikets View Post
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?
I accomplished this earlier,

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

Quote:
Originally Posted by mikets View Post
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?
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/integratio...02&view=markup
Reply With Quote
  #3   Spotlight this post!  
Unread 05-02-2012, 07:16
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,750
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Target indication on dashboard

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
Reply With Quote
  #4   Spotlight this post!  
Unread 05-02-2012, 14:13
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Target indication on dashboard

Quote:
Originally Posted by Greg McKaskle View Post
That dashboard with the overlays was probably the default one written in LV.
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 .
Quote:
Originally Posted by Greg McKaskle View Post
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.
Where can I find this Rectangular Target Processing example? I looked at the VisionSample2012 project and that's not it.
Quote:
Originally Posted by Greg McKaskle View Post
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.
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?
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 05-02-2012, 18:16
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: Target indication on dashboard

Quote:
Originally Posted by mikets View Post
Where can I find this Rectangular Target Processing example? I looked at the VisionSample2012 project and that's not it.
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.

Quote:
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-02-2012, 22:00
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Target indication on dashboard

Quote:
Originally Posted by Alan Anderson View Post
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.



Right.
That's why. I don't have LabView installed. Need to find that credit card USB drive!
__________________
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:39.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi