Go to Post Instead of giving us some wood and nails and saying "build us a box", they're handing us power tools and saying "now make us something cool" - galewind [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2016, 22:11
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is online now
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 387
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Running GRIP from driver station?

Has anybody had any success with running a GRIP program on the driver station using a camera on the robot? For example, the robot takes an image from a USB camera, sends it to the laptop, processes it, and sends data back over NetworkTables. Is this even possible, as CD and the GRIP wiki didn't seem to have much on it.

Secondly, how can you change the exposure of this camera in the code, before sending the image to GRIP? I have modified the camera settings but it likes to reset itself. We are using a Microsoft USB Lifecam.

Thanks!
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #2   Spotlight this post!  
Unread 05-02-2016, 22:40
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #1261
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 70
BrianAtlanta has a spectacular aura aboutBrianAtlanta has a spectacular aura about
Re: Running GRIP from driver station?

We've tested with DS based grip with an IP camera on the bot and it worked smoothly. We used network tables to drive a motor turning the camera as a proof of concept. Definitely do-able.

If you're pushing video to DS, make sure that you are aware of the bandwidth you're using based upon compression and resolution. FRC has a table to determine bandwith based upon compression, resolution and frame rate. Additionally, even though you get 7mbps on your wifi, the same FRC document points out that packet latency spikes after using 6mbps.

Brian
  #3   Spotlight this post!  
Unread 06-02-2016, 08:32
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is online now
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 387
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: Running GRIP from driver station?

Quote:
Originally Posted by BrianAtlanta View Post
We've tested with DS based grip with an IP camera on the bot and it worked smoothly. We used network tables to drive a motor turning the camera as a proof of concept. Definitely do-able.

If you're pushing video to DS, make sure that you are aware of the bandwidth you're using based upon compression and resolution. FRC has a table to determine bandwith based upon compression, resolution and frame rate. Additionally, even though you get 7mbps on your wifi, the same FRC document points out that packet latency spikes after using 6mbps.

Brian
Thanks Bryan, it's good to see that another team did this. How did you go about doing this, and how bad was the latency? Do you think you could describe some of the steps you took to get this set up, and what you had to have open to have it work (GRIP, DS, etc.).

Thanks a lot!
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #4   Spotlight this post!  
Unread 06-02-2016, 16:09
David Lame David Lame is offline
Registered User
FRC #0247
 
Join Date: Feb 2015
Location: Berkley, MI
Posts: 86
David Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the roughDavid Lame is a jewel in the rough
Re: Running GRIP from driver station?

Quote:
Originally Posted by Poseidon1671 View Post
Has anybody had any success with running a GRIP program on the driver station using a camera on the robot? For example, the robot takes an image from a USB camera, sends it to the laptop, processes it, and sends data back over NetworkTables. Is this even possible, as CD and the GRIP wiki didn't seem to have much on it.

Secondly, how can you change the exposure of this camera in the code, before sending the image to GRIP? I have modified the camera settings but it likes to reset itself. We are using a Microsoft USB Lifecam.

Thanks!
In another thread, I was told that you can't do this with a USB camera, at least not at this time. You need an IP camera. (The developers were contemplating adding some sort of support.)


We have successfully run grip on the driver station, and exchanged data with the Roborio via network tables.
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 00:41.

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