Go to Post Dont give up, because that is when you lose what you have. FIRST is the best experience that I have had throughout my entire life and there is no way ANYONE can make me quit FIRST. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 28-07-2016, 14:28
s5511's Avatar
s5511 s5511 is offline
Registered User
FRC #5511
 
Join Date: Jan 2016
Location: Cary, NC
Posts: 58
s5511 is an unknown quantity at this point
LabVIEW Vision Example

We are trying to integrate the 2016 LabVIEW vision example into our robot project. How would we go about 'importing' the vision example into our project?
__________________


NC Rookie All Star, Rookie Highest Seed 2015
NC THOR Winner 2015
NC Guilford County Winner and Creativity Award 2016
Reply With Quote
  #2   Spotlight this post!  
Unread 28-07-2016, 15:08
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: LabVIEW Vision Example

You can checkout the tutorials to help get started.

From the Getting Started window (when LV is first started or View->Getting Started Window...)
Select Tutorials on the left side.
See Tutorial 7 - Integrating Examples into Robot Code
and
Tutorial 8 - Integrating Vision into Robot Code

It's pretty much a complete replacement of the default Vision Processing.vi
Porting the Robot Global Data.vi contents
Adding the Vision Support Code
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 28-07-2016 at 15:17.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-07-2016, 10:38
s5511's Avatar
s5511 s5511 is offline
Registered User
FRC #5511
 
Join Date: Jan 2016
Location: Cary, NC
Posts: 58
s5511 is an unknown quantity at this point
Re: LabVIEW Vision Example

So is the roboRIO processing the image on-board, or is the driver station processing the image and sending the data back? We are wondering how it would perform on the field, and it might be a problem if it is sending the image over the FMS to the driver station, and the latency may be too high
__________________


NC Rookie All Star, Rookie Highest Seed 2015
NC THOR Winner 2015
NC Guilford County Winner and Creativity Award 2016
Reply With Quote
  #4   Spotlight this post!  
Unread 29-07-2016, 11:03
Maximillian's Avatar
Maximillian Maximillian is offline
Registered User
AKA: Max Westwater
FRC #5254 (HYPE)
Team Role: College Student
 
Join Date: Dec 2013
Rookie Year: 2014
Location: Worcester, MA; NY
Posts: 99
Maximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant futureMaximillian has a brilliant future
Re: LabVIEW Vision Example

Quote:
Originally Posted by s5511 View Post
So is the roboRIO processing the image on-board, or is the driver station processing the image and sending the data back? We are wondering how it would perform on the field, and it might be a problem if it is sending the image over the FMS to the driver station, and the latency may be too high
You can do it either way. If you want to process the image on board you copy the example code to the Vision processing VI. If you want to do the image processing on the driver station you can copy the example code to the Dashboard project in the vision processing loop that's already in the project by default.

My team did the processing on the dashboard and sent back the coordinates of the goal to the robot via network tables. Let me know if you want to see our dashboard project and I can send it to you for reference.
__________________


2016: TVR #2 seed + Finalist | FLR #1 seed + Semifinalist | Hopper Finalist | IRI Semifinalist
2015: TVR Finalist | FLR #1 seed + Finalist | Carson Quarterfinalist | IRI Quarterfinalist | Ruckus Winner
Reply With Quote
  #5   Spotlight this post!  
Unread 29-07-2016, 11:10
s5511's Avatar
s5511 s5511 is offline
Registered User
FRC #5511
 
Join Date: Jan 2016
Location: Cary, NC
Posts: 58
s5511 is an unknown quantity at this point
Re: LabVIEW Vision Example

Yeah, I'd love to see your code. It would be great if you could send it to cortechsrobotics@gmail.com


We copies the code in the example vision processing vi and just transferred it with its dependencies to our project. So does that mean it's running on-board?

I'm curious as to what are the pros/cons of running it on the dashboard or on board. What made you do it on the dashboard?


Quote:
Originally Posted by Maximillian View Post
You can do it either way. If you want to process the image on board you copy the example code to the Vision processing VI. If you want to do the image processing on the driver station you can copy the example code to the Dashboard project in the vision processing loop that's already in the project by default.

My team did the processing on the dashboard and sent back the coordinates of the goal to the robot via network tables. Let me know if you want to see our dashboard project and I can send it to you for reference.
__________________


NC Rookie All Star, Rookie Highest Seed 2015
NC THOR Winner 2015
NC Guilford County Winner and Creativity Award 2016
Reply With Quote
  #6   Spotlight this post!  
Unread 30-07-2016, 10:52
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: LabVIEW Vision Example

We did our processing on the roborio this year. Primary reason is that it was powerful enough for what we needed to do. For the off season we're working on an on robot coprocessor to do the image processing for us.

Our robot code is on GitHub here under 2016-RoboBees-OffSeason:
https://github.com/FRC-836/

You WILL need the 836-Library to be installed in userlib. Documentation is spotty in many places and we're working to improve that. Message me if you have any questions. Also, those are works in progress as we go through the off season so there will be udpates.
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
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:16.

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