Go to Post I'm all for an aggressive game, but lets not crack each others lexan. - Molten [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 09-08-2016, 08:57
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 Aiming

We are a team who are in the process of programming vision. We have integrated the LabVIEW example into our project and and have the robot aiming at the target using a PID loop which uses the distance off-center (x) as feedback. We are aiming to switch our feedback to a gyro (or encoders) instead, as we don't want to deal with the on-field lag associated with camera-based feedback. Are there any tutorials/resources out there for help with this sort of thing?

We also wanted to display our processed image to the Dashboard, instead of displaying the unaltered image. How would we do this?

Thanks!
__________________


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 09-08-2016, 09:53
414cnewq 414cnewq is offline
Registered User
FRC #3844 (Kentucky Wildbots)
Team Role: Alumni
 
Join Date: Jul 2014
Rookie Year: 2014
Location: KY
Posts: 86
414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of414cnewq has much to be proud of
Re: LabVIEW Vision Aiming

Have you looked into the presentation by the Cheesy Poofs at Championship?
(slides and video are in this thread). It won't help you with video on the dashboard, but it will help you give gyro input.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-08-2016, 10:00
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 Aiming

Quote:
Originally Posted by s5511 View Post
We are aiming to switch our feedback to a gyro (or encoders) instead, as we don't want to deal with the on-field lag associated with camera-based feedback. Are there any tutorials/resources out there for help with this sort of thing?
Our code may work as a (cluttered) example for this. Short version, when you take the image you also sample your gyro. You calculate your new angle for the robot based on this and feed this as the new set point to a PID with the gyro as the process variable.

https://github.com/FRC-836/2016-RoboBees-OffSeason

Quote:
Originally Posted by s5511 View Post
We also wanted to display our processed image to the Dashboard, instead of displaying the unaltered image. How would we do this?
Easiest way to do this is to have image processing on both the robot and the dashboard. If you use the same parameters on the dashboard as the robot you'll get the same altered image. Recompressing the processed image to the dashboard will consume significant rio processing time and should be avoided.
__________________
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
  #4   Spotlight this post!  
Unread 09-08-2016, 12:11
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 Aiming

Quote:
Originally Posted by adciv View Post
Easiest way to do this is to have image processing on both the robot and the dashboard. If you use the same parameters on the dashboard as the robot you'll get the same altered image. Recompressing the processed image to the dashboard will consume significant rio processing time and should be avoided.
Would this increase the number of packets sent over the FMS? (concerned about lag). Or would the computer process the image locally, and not slow down the connection?
__________________


NC Rookie All Star, Rookie Highest Seed 2015
NC THOR Winner 2015
NC Guilford County Winner and Creativity Award 2016
Reply With Quote
  #5   Spotlight this post!  
Unread 09-08-2016, 12:40
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 Aiming

Quote:
Originally Posted by s5511 View Post
Would this increase the number of packets sent over the FMS? (concerned about lag). Or would the computer process the image locally, and not slow down the connection?
The driver station/computer would process the image locally. The only thing being sent over the network is the original image from the camera. Sending the original image over the network vs. a processed image would require more bandwidth/packets due to compression. As long as your image bandwidth stays under 5mbps you shouldn't induce additional lag in the system as you'll be under your limits. That said, you should always strive to have the lower resolution image you can get away with to decrease image processing time.
__________________
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 16:30.

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