Go to Post Sorry, during my fluid mechanics lectures on drag I must have been designing a gearbox in my mind. FRC season will do that. - sanddrag [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 15-02-2014, 17:25
lkearley lkearley is offline
Registered User
FRC #1452
 
Join Date: Dec 2012
Location: Los Angeles
Posts: 7
lkearley is an unknown quantity at this point
Classmate Video Lagging

We have been having trouble with using our classmate and the driver dashboard, the video feed has been seriously lagging. With teleop enabled, the video is around 5 fps and has a 2 second lag, but with teleop disabled, the video is around 20 fps and it's 1 second behind. Obviously, that would be a huge problem for driving and autonomous goal recognition. Has anyone else been having these issues? Does anyone know how to fix it? Thanks in advance.
  #2   Spotlight this post!  
Unread 15-02-2014, 17:33
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,778
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Classmate Video Lagging

What is the resolution you're using on the camera?
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

  #3   Spotlight this post!  
Unread 15-02-2014, 17:35
lkearley lkearley is offline
Registered User
FRC #1452
 
Join Date: Dec 2012
Location: Los Angeles
Posts: 7
lkearley is an unknown quantity at this point
Re: Classmate Video Lagging

Quote:
Originally Posted by EricH View Post
What is the resolution you're using on the camera?
320x240, but we have the same problems at 160x120. The compression also has no effect.
  #4   Spotlight this post!  
Unread 15-02-2014, 17:35
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 929
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Classmate Video Lagging

We had this issue last year. We even had some sort of overload of the network that forced our cRio to reboot! Running full stream video from the Axis through the router is very taxing on the classmate.

I would highly recommend not doing that unless you REALLY need a live video.
  #5   Spotlight this post!  
Unread 15-02-2014, 17:46
lkearley lkearley is offline
Registered User
FRC #1452
 
Join Date: Dec 2012
Location: Los Angeles
Posts: 7
lkearley is an unknown quantity at this point
Re: Classmate Video Lagging

So we sort of solved it. We now just open the driver station on the classmate, but the dashboard on a second laptop. We didn't have everything on the second laptop before because it has connection issues and isn't too reliable. Thanks for the help!
  #6   Spotlight this post!  
Unread 15-02-2014, 20:45
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,112
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: Classmate Video Lagging

Quote:
Running full stream video from the Axis through the router is very taxing on the classmate.
That's definitely the case for the E09 Classmate. The E11 does a little better.

Look at the diagnostics window on your Driver Station. Do you see any error messages when you enable the robot in Teleoperated mode? Dealing with error conditions could be keeping your Classmate busy enough that it can't do a good job showing the video from the camera.
  #7   Spotlight this post!  
Unread 15-02-2014, 21:31
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,751
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: Classmate Video Lagging

The lag is caused by sending more images than can be displayed. Images flow from the camera through its TCP stack, to the bridge, to the laptop and its stack. any buildup and it will start to lag.

If you watch the laptop CPU and identify the speed that it is displaying, you probably want to set the camera framerate to a value no faster. At that point, the laptop CPU should drop below max and the lag should reduce and minimize at a 100ms or so.

Updating the laptop or splitting the duties will allow for higher framerate without lag.

I also don't really see how this could cause a cRIO to reboot since the cRIO isn't at all involved in the display to the dashboard.

Greg McKaskle
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 15:05.

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