Go to Post Robotics is my football! - Nemo [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 15-02-2012, 13:15
The Trooper The Trooper is offline
Registered User
FRC #2559 (nOrMaLiTy zErO)
Team Role: Coach
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Harrisburg PA
Posts: 23
The Trooper is an unknown quantity at this point
Help with making a custom Dashboard and the Rectangular Target Processing

I am a senior this year in my club, but I only have been programming since last year. I can do a lot of the basic programming with the WPI robotics library, and simple tasks, but I have not gotten a clear answer, or have been shown how to incorporate anything into a custom dashboard. There are examples and tutorials out there, but these leave a lot of information out, and some do not even work when I use them. I would just like some guidance, and see how I can incorporate the image from the camera that recognizes the rectangle, and how I can incorporate what the camera sees and if it recognizes it when the cRIO is up an running. I haven't even been able to figure out how to tell it to look for light intensity within the cRIO project. I don't know if it is or not. Here are my main goals:
  • See the black and red image side by side with the non-processed image on the dashboard
  • Adjust the camera to look for light sensitivity within the cRIO project
  • Figure out how to incorporate my own data into the dashboard
There has got to be an easier way to do it than the example that NI provides for you. I am to the point where I do not know what to do anymore, and with being in a region where there are only two teams in my area, mine and one other that is just about as young as we are, I do not know where else to turn.

I will gladly appreciate any help anyone can give me
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2012, 23:17
bstites82 bstites82 is offline
Registered User
AKA: Blake Stites
FRC #2164 (multiple)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Harrisonville
Posts: 12
bstites82 is an unknown quantity at this point
Re: Help with making a custom Dashboard and the Rectangular Target Processing

I haven't worked much with custom dashboards myself, but I would suggest playing with/reading carefully through the rectangular target tracking example. while it runs on the crio and not the dashboard it is an excellent learning tool. open the rectangular target tracking robot main vi. change the crio ip address and then click run while connected to the robot. then open the front panel of the vision vi and enable the original image and processed image displays. NI provides a huge amount of control with this example and the controls can be adjusted in real time to find the best parameters for your robot. once those are found you can change controls to constants. once you've gotten familiar with the example code you will find that you should know how to:
See the black and red image side by side with the non-processed image on the dashboard
Adjust the camera to look for light sensitivity within the cRIO project
your third goal requires you to mesh the example with your dashboard and figure out how to send data back and forth from the robot to the dashboard. there are several threads on data transmission using tcp or udp so that should give you an idea where to start. hopefully this helps.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2012, 08:04
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: Help with making a custom Dashboard and the Rectangular Target Processing

We've had some success creating a custom dashboard. All you really have to do is find the gigantic cluster of constants in the sample dashboard program and replace that with your own cluster of datatypes. Once you do that, you can send a cluster of matching types from your robot code and it will show up on the dashboard. In the dashboard VI you would just replace all the default indicators with your own. Our team doesn't use LabView (we use Java) so we don't know much else about it, but we've been able to customize the dashboard pretty well. It would be very cool to see the processed camera image in the dashboard, if you figure out how to do that, could you share what you did?
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2012, 08:20
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,748
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: Help with making a custom Dashboard and the Rectangular Target Processing

There is a tutorial that steps you through the example and explains how to incorporate and debug. Have you gone through the tutorial?

If you have already incorporated the vision code into your project, I'd next run by pressing the Run Arrow, so that you can probe the images and values. This is far easier than rebuilding your dashboard each time you want to view something new.

If you are past that stage and want to update the dashboard, you need to place new indicators and connect them to data coming from the robot. But, sending arbitrary images back is harder as they will not fit in the high or low priority status data. That part is far easier to do with probes. It is pretty easy to send the target data back and draw that over the camera image which the dashboard receives directly from the camera.

Please give more info and ask questions specific to the step you are on. It is important to have everything planned out, but in terms of helping you out, it makes it hard to know which step you need immediate help with.

Greg McKaskle
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 03:55.

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