Go to Post -Best FIRST Robot: One that Makes it to Competition - Conor Ryan [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 12-01-2017, 20:15
Zguptill Zguptill is offline
Registered User
FRC #4944
 
Join Date: Jan 2017
Location: Colorado
Posts: 1
Zguptill is an unknown quantity at this point
Cut down on lag to rio with usb cam?

We were having a lot of lag on our video stream through the roborio, is there a way to cut down on this lag?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2017, 21:25
sanghakchun sanghakchun is offline
Registered User
AKA: Andy
FRC #0846 (The Funky Monkeys)
Team Role: Programmer
 
Join Date: May 2016
Rookie Year: 2015
Location: San Jose, CA
Posts: 4
sanghakchun is an unknown quantity at this point
Re: Cut down on lag to rio with usb cam?

I imagine it's either due to the amount of data you're sending or a connection issue.

I'd cut down on the resolution of the video stream and test for connection issues.

On the off-chance it's because of load on the roboRIO, maybe a coprocessor dedicated to video could be used?
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2017, 19:09
SpicyCactus SpicyCactus is offline
Registered User
FRC #3039
 
Join Date: Jan 2017
Location: Louisiana
Posts: 4
SpicyCactus can only hope to improve
Re: Cut down on lag to rio with usb cam?

We had this issue last year with using multiple cameras. If you are you using multiple cameras you could try switching in between the two with a button on your controller. If you are only using one camera try lowering you resolution or maybe you computer cannot handle the video stream.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2017, 13:14
david.e.boles david.e.boles is offline
Bringer of Whales and Petunias
AKA: david476
FRC #5940 (BREAD)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2011
Location: San Francisco, CA
Posts: 30
david.e.boles is on a distinguished road
Re: Cut down on lag to rio with usb cam?

What amount of lag are you looking at? We had <0.5 sec of lag last year. If you're using usb I don't think there's that much you can do...
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2017, 12:11
Commandman7 Commandman7 is offline
Registered User
FRC #4362 (Gems Robotics)
Team Role: Mentor
 
Join Date: Jan 2017
Rookie Year: 2013
Location: Howell, Michigan
Posts: 5
Commandman7 is an unknown quantity at this point
Re: Cut down on lag to rio with usb cam?

Last year, we had a linear relationship between camera bandwidth and latency, so turning down camera quality and framerates can help a lot. 10 FPS with lower latency is surprisingly usable compared to 30 FPS with higher latency. I'm not sure if you've done this / can do this, but if you are using a camera that supports H.264 encoding like the Logitech C920 series, you can do H.264 encoding on the camera itself, which takes a lot of the load and latency off the Roborio.
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2017, 13:37
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,251
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Cut down on lag to rio with usb cam?

Use an ip camera to go directly to the driver station
__________________

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 12:34.

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