Go to Post This site is truly the best resource out there for FIRST teams, the information that flows on here is just amazing and I don't know what FIRST would be like without it. - Ricky Q. [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

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 28-02-2014, 13:13
spyla spyla is offline
Registered User
FRC #3616 (Phenomena)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: USA
Posts: 11
spyla is an unknown quantity at this point
Active Goal detection - on cRIO or Drive station

Hi,

we are using labview.

for the active goal detection should I do Vision part it in autonomous part of the cRIO Code or should I do on drive station and just send the active status to cRIO? During autonomous stage will drive station interact with the robot?
__________________
spyla
Team 3616
  #2   Spotlight this post!  
Unread 28-02-2014, 13:15
Conor Ryan Conor Ryan is offline
I'm parking robot yacht club.
FRC #4571 (Robot Yacht Club)
Team Role: Mentor
 
Join Date: Nov 2004
Rookie Year: 2004
Location: Midtown, NYC
Posts: 1,899
Conor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond reputeConor Ryan has a reputation beyond repute
Re: Active Goal detection - on cRIO or Drive station

The best practice is to do all of the processing on the crio, you want to transmit as little data as possible and keep everthing local on the crio for closer to real time analysis.
  #3   Spotlight this post!  
Unread 28-02-2014, 13:19
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 947
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Active Goal detection - on cRIO or Drive station

Plus, for the autonomous hot goal detection, you only really have to process a picture once near the start. If the indicator isn't on the side you're lookign at, your side will be hot for the 5-10 sec period.

(Note: this can become more complicated and require additional logic depending on how and where you line up and what your camera can see)
  #4   Spotlight this post!  
Unread 28-02-2014, 17:21
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,113
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: Active Goal detection - on cRIO or Drive station

Quote:
Originally Posted by spyla View Post
During autonomous stage will drive station interact with the robot?
Communication from the Dashboard program to the cRIO is not blocked during autonomous mode. You will be able to do vision processing on the computer running the Driver Station and send the "hot or not" status to the robot, if you wish.
  #5   Spotlight this post!  
Unread 28-02-2014, 17:22
Brandon_L Brandon_L is offline
Back @ it again with the white vans
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,207
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Active Goal detection - on cRIO or Drive station

Quote:
Originally Posted by Conor Ryan View Post
The best practice is to do all of the processing on the crio, you want to transmit as little data as possible and keep everthing local on the crio for closer to real time analysis.
I beg to differ, Processing on the cRIO drags it down, and sometimes will create 'lag' as it processes it.

You're already sending your webcam image to the dashboard. Why not process that? Retrieve whatever goal info you need, and send a string back to the robot.

All we're sending back is a Boolean if the goal we're looking at is hot or not.
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
  #6   Spotlight this post!  
Unread 02-03-2014, 09:01
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,756
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: Active Goal detection - on cRIO or Drive station

The tutorial and example code attempted to show how both approaches can be made to work.

You will not bog down the cRIO unless you send it more pixels/second than it can process. How many that is depends on how you decide to process, image size, framerate, etc.

The processor on your laptop is more powerful, but can pretty easily be overwhelmed by image processing too. Also be careful not to request more images than you are processing or this can introduce video lag.

Greg McKaskle
  #7   Spotlight this post!  
Unread 06-03-2014, 05:06
ykarkason ykarkason is offline
21st Century Schizoid Man
FRC #3316 (D-Bug)
Team Role: CAD
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Israel
Posts: 63
ykarkason will become famous soon enoughykarkason will become famous soon enough
Re: Active Goal detection - on cRIO or Drive station

You will not bog down the cRIO of you won't try real-time processing.
Our vision system relied on processing the targets on-demand, and extracting the useful data out of it.
During auton we ran the processing a max of 3 times, based on if the program didn't land into an error. And that's it - distance, angle, hot-or-not, once, and you're done for auton.
  #8   Spotlight this post!  
Unread 07-03-2014, 10:16
Alpharex Alpharex is offline
Registered User
FRC #3293 (Otterbots)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Fergus Falls
Posts: 15
Alpharex will become famous soon enough
Re: Active Goal detection - on cRIO or Drive station

I can send you our code to look at if you want to use it or get an idea about how to do it. we process the dashboard image and then send a true(or false) to the Crio. This is method recommended by National Instruments
  #9   Spotlight this post!  
Unread 07-03-2014, 23:00
JM033's Avatar
JM033 JM033 is offline
Registered User
AKA: J
FRC #0240 (Tempest)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2009
Location: Michigan
Posts: 46
JM033 is an unknown quantity at this point
Re: Active Goal detection - on cRIO or Drive station

use the dashboard and send the data to crio, or else do it on the crio and suffer from super high latency
  #10   Spotlight this post!  
Unread 07-03-2014, 23:38
cmwilson13's Avatar
cmwilson13 cmwilson13 is offline
Registered User
AKA: Christopher Wilson
no team
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: buford GA
Posts: 91
cmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura aboutcmwilson13 has a spectacular aura about
Re: Active Goal detection - on cRIO or Drive station

Quote:
Originally Posted by JM033 View Post
use the dashboard and send the data to crio, or else do it on the crio and suffer from super high latency
thats simply not true. you just cant process in large resolutions and 30 fps
__________________
"Like the WWF, but for smart people." -George HW Bush

Team Member 1771 2008-2009
Team Mentor 1771 2010-2012 2014-2016
Team Mentor 4509 2013-2014
Team Mentor 3998 2013-2014
  #11   Spotlight this post!  
Unread 07-03-2014, 23:54
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 487
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Active Goal detection - on cRIO or Drive station

I recommend a third option: Do vision processing on neither on the cRIO or driver station.
  #12   Spotlight this post!  
Unread 08-03-2014, 00:26
dellagd's Avatar
dellagd dellagd is offline
Look for me on the field!
AKA: Griffin D
FRC #2590 (Nemesis) #2607 (The Fighting Robovikings)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2011
Location: PA
Posts: 890
dellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond reputedellagd has a reputation beyond repute
Re: Active Goal detection - on cRIO or Drive station

We've done both, and doing it on the driver station has been both easier and more effective this year over when we tried it on the Rio.
__________________
Check out some cool personal projects in computers, electronics, and RC vehicles on my blog!

2016 MAR DCMP Engineering Excellence Award
2016 MAR Westtown Innovation in Control Award
2016 MAR Hatboro-Horsham Industrial Design Award
2015 Upper Darby District Winners - Thanks 225 and 4460!
2015 Upper Darby District Industrial Design Award
2015 Hatboro-Horsham District Winners - Thanks 2590 and 5407!
2014 Virginia Regional Winners - Thanks so much 384 and 1610, I will never forget that experience!
2014 Virginia Quality Award
2014 MAR Bridgewater-Raritan Innovation in Control Award
2014 MAR Hatboro-Horsham Gracious Professionalism Award
2013 MAR Bridgewater-Raritan Innovation in Control Award
2012 MAR Lenape Quality Award
Closed Thread


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 02:43.

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