Go to Post On a side note... "Think outside the robot." - I kinda like that. I'll have to use that in a meeting someday.... - Not2B [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 13-01-2013, 16:58
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Question Vision Tracking on Driver Station (Not cRIO)

In the Rectangle Target Processing under "Vision" in examples, you have one example for doing all vision tracking on the cRIO, but under "My Computer" in the project example, they say you can use that to process the image on the dashboard and send the data back to the cRIO which uses less CPU.

How can I incorporate this example in the dashboard code?
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2013, 19:34
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: Vision Tracking on Driver Station (Not cRIO)

In the example code is a Read MJPG VI, and the processing is the code downstream from there. In the dashboard, you'll find the same Read MJPG VI and the downstream code updates a display and saves a frame every second. Both of them remove annotations as well.

Merge those two loops. You can merge in the masked display and the calibration if you like. The bare bones edition would be to merge the threshold, score, and distance calculation code.

If this isn't enough info, please ask a more detailed question.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2013, 23:56
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Vision Tracking on Driver Station (Not cRIO)

I'm not quite sure if I know what you mean. In the examples of the 2013 Rectangle Processing Project, you have My Computer and RT CompactRio Target, right? Under My Computer, you have the Rectangle processing .vi I saw on national instruments that you can incorporate that into your dashboard code. How do I do that? Can I just replace the Vision Processing loop in the Dashboard code with that VI?

Thanks for the reply
Reply With Quote
  #4   Spotlight this post!  
Unread 14-01-2013, 06:30
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: Vision Tracking on Driver Station (Not cRIO)

My response assumed you had already opened the My Computer VI and looked at its diagram. On that diagram, you'll find the VIs I mention.

The example was meant to show the steps of image processing and learn what they do, and it isn't ready to simply drop into the Dashboard.

I'd probably take the example and turn it into a subVI that doesn't have the loop and doesn't acquire its own image and returns the target info. I'd then place that subVI into the dashboard vision loop. I can give more step-by-step instructions, but I don't want to take away the fun.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2013, 20:28
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Vision Tracking on Driver Station (Not cRIO)

How will this work? We currently don't have a platform to test on.



Reply With Quote
  #6   Spotlight this post!  
Unread 14-01-2013, 20:45
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: Vision Tracking on Driver Station (Not cRIO)

Looks about right. You mention not being able to test, but if you have a camera plugged into the DS laptop and run the dashboard, it should be able to probe the wires or open the panel and view the indicators.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 14-01-2013, 20:47
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Vision Tracking on Driver Station (Not cRIO)

Thank you so much. I'll give you an update tomorrow if it worked or not, or what goes wrong
Reply With Quote
  #8   Spotlight this post!  
Unread 14-01-2013, 21:12
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Vision Tracking on Driver Station (Not cRIO)

Getting tons of errors when running the .exe

Reply With Quote
  #9   Spotlight this post!  
Unread 15-01-2013, 06:32
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: Vision Tracking on Driver Station (Not cRIO)

The camera VIs to the right load up the simulator when they are run on the PC. Normally that doesn't cause a problem because the simulator is installed, but it appears that yours isn't installed or isn't loading.

Delete the Open, Set Color Enable, and the other two connected yellow nodes and it should work.

A new thing you may want to do at some point is try to use the simulator from the robot project and see if it works for you.

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 04:15.

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