Go to Post Part of the magic of FIRST is the interaction between different teams- and that becomes clear as day as the clock starts ticking. - mhayon [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 21-02-2010, 19:38
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Classmate Latency and Live Video

Our team ran a mini-regional today in Sussex, WI, complete with FMS and the works. While monitoring the latency between the FMS and the robots, we found that those streaming video to dashboards running on the Classmate had latency times from 120 to 200 ms, while those not streaming video to the Classmate enjoyed latency times around 30ms.

While I realize the numbers may be different in an actual competition, the moral of the story seems that without modifying the dashboard to lessen load on the Classmate's CPU or running the dashboard on another laptop as has been discussed elsewhere on this forum, running video live to your robot has a significant cost in latency. Keep in mind that this latency was from the Classmate back to the robot as well as from the robot to the Classmate, so teams running video on the Classmate must decide whether it is worth somewhat of a lag in robot control.
__________________

Last edited by slavik262 : 21-02-2010 at 21:36.
  #2   Spotlight this post!  
Unread 21-02-2010, 21:28
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: Classmate Latency and Live Video

The latency should not be as described, and previous testing with FMS lite was always done with the dashboard video turned on. We will try to reproduce the results you describe.

Greg McKaskle
  #3   Spotlight this post!  
Unread 21-02-2010, 21:38
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Classmate Latency and Live Video

Quote:
Originally Posted by Greg McKaskle View Post
The latency should not be as described, and previous testing with FMS lite was always done with the dashboard video turned on. We will try to reproduce the results you describe.

Greg McKaskle
I'm sorry if the data isn't very reproducible; I understand that it could be a wide variety of things causing the delay. Seeing as we didn't inspect the code of the other teams, I don't know what resolutions they were using, what other data they were sending, etc.
__________________
  #4   Spotlight this post!  
Unread 21-02-2010, 21:41
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: Classmate Latency and Live Video

That is fine. I'm hoping and suspecting that it is something else, but I'd rather be certain, so we will try to reproduce it.

Greg McKaskle
  #5   Spotlight this post!  
Unread 22-02-2010, 21:26
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
Re: Classmate Latency and Live Video

If we can be any help 706 was at the mini and we did have latency issues. we fixed the problem (well we think we did -- not 100%) by patching the driver station. I can get more info from our lead programmer if you guys need it
  #6   Spotlight this post!  
Unread 23-02-2010, 07:39
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: Classmate Latency and Live Video

Using FMS Lite, we were unable to reproduce lag using either video or video back to the PC.

Oddly enough, we did sometimes see quite a lot of lag reported at the FMS. Running from source, we were able to see that the FMS value was correct, and ultimately this is related to the I/O board attachment. At this point, I think we can safely say that the lag exists on the status leg of the control loop and has very little affect on the control packets that control the robot. We are still looking into how the I/O driver is causing UDP delay.

Greg McKaskle
  #7   Spotlight this post!  
Unread 23-02-2010, 09:08
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Classmate Latency and Live Video

Awesome. That would explain things since the lag was being reported by the FMS on our end as well. We'll look a little more into it, but your results are quite reassuring. Thanks again.
__________________
  #8   Spotlight this post!  
Unread 23-02-2010, 13:36
DRH2o's Avatar
DRH2o DRH2o is offline
Registered User
AKA: Dan Waters
FRC #1598 (Team Talon)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Danville, VA
Posts: 147
DRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of lightDRH2o is a glorious beacon of light
Re: Classmate Latency and Live Video

I can say that I know of two teams ( ours included ) that did have lag controlling the robot in our labs using the basic router bridge setup. We were streaming video to the classmate. The lag stopped when we disconnected the ethernet cable from the camera. We are not using FMS.
  #9   Spotlight this post!  
Unread 23-02-2010, 14:19
camtunkpa camtunkpa is offline
it's like shooting fish in a barrel
AKA: Cliff Mock
FRC #0222 (Tigertrons)
Team Role: Engineer
 
Join Date: Oct 2002
Rookie Year: 1997
Location: Tunkhannock, PA
Posts: 580
camtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond reputecamtunkpa has a reputation beyond repute
Re: Classmate Latency and Live Video

We are also experiencing lag in our robot control system while running video feed and not connected to any FMS software.
__________________
"Engineering is making the impossible happen"
"We are here to create, not merely survive" - unknown fortune cookie
"If you don't push the envelope you're just spinning your wheels"
  #10   Spotlight this post!  
Unread 23-02-2010, 15:07
MishraArtificer's Avatar
MishraArtificer MishraArtificer is offline
Winner, Chief Delphi Insanity Award
AKA: Jeremy Marr
FRC #0240 (T.E.M.P.E.S.T.)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Monroe, MI, US
Posts: 231
MishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of light
Re: Classmate Latency and Live Video

Would killing off background processes in Windows XP help with the latency any? I have a good-sized list of things you can do to Windows XP to make it go faster and ease the load on the processor, from mundane things like turning off the Print Spooler (since there's no printer attached anyway), to more complex stuff like registry edits. I work at a computer repair shop here in Monroe, and I've used most of it on all of my computers, my parent's computers, as well as some customer's laptops and desktops.
__________________
Madness?
THIS IS F.I.R.S.T!

  #11   Spotlight this post!  
Unread 23-02-2010, 22:49
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Classmate Latency and Live Video

Quote:
Originally Posted by MishraArtificer View Post
Would killing off background processes in Windows XP help with the latency any?
The bottleneck seems to be the processing speed of the Classmate processor itself, so yes, shutting down some background stuff would probably help.
__________________
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Latency Test nighterfighter Programming 3 29-01-2010 22:36
Live video compression? MrWibbles Programming 4 21-01-2010 16:25
Java Camera Video on ClassMate Thomas4019 Java 8 16-01-2010 00:18
Live Streaming Video whosdadog FRC Control System 7 14-01-2010 18:36
New Video Blog Entry: "Video from Live LabVIEW Session for FRC Competitors in Toronto LVMastery NI LabVIEW 0 13-12-2008 08:09


All times are GMT -5. The time now is 03:49.

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