Go to Post Fame... Fortune... Bleh I'm inspired and thats all that matters to me - Noah Melamed [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 25-01-2010, 13:56
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: 2010 FRC Camera Live Feed Lag

OK, here's what I just tried:

Setting battery options to "Always On".
Running the driver station software under the Developer account.
Running the software with the Dashboard selected.
Logging on to only one account at a time.
Using a laptop as the driver station.
Setting the camera's frame rate to 5 frames/sec.

None of the above had an appreciable effect on the lag. Help!
  #2   Spotlight this post!  
Unread 25-01-2010, 14:00
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: 2010 FRC Camera Live Feed Lag

Quote:
Originally Posted by ideasrule View Post
OK, here's what I just tried:

Setting battery options to "Always On".
Running the driver station software under the Developer account.
Running the software with the Dashboard selected.
Logging on to only one account at a time.
Using a laptop as the driver station.
Setting the camera's frame rate to 5 frames/sec.

None of the above had an appreciable effect on the lag. Help!
Increase FPS? I don't know what you mean by lag. You are only going to get a new image every 200ms at that speed....
  #3   Spotlight this post!  
Unread 25-01-2010, 14:59
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: 2010 FRC Camera Live Feed Lag

The problem is that I'm NOT getting one frame every 200 ms. I'm getting one frame every 500 ms. If I were getting 5fps, I'd be happy.
  #4   Spotlight this post!  
Unread 25-01-2010, 18:29
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: 2010 FRC Camera Live Feed Lag

Well, we found *a* problem. We had been using the driver account on the ClassMate as the driver station, silly us, of course it's not designed for that exact purpose. When we logged off the driver account and switched to the developer account, the frame rate jumped up by a factor of ten or twenty (on 320x240 resolution), and the lag all but disappeared. What worries us now is we don't know whether this will be allowed at the competition (looked through the competition documents). Does anyone else have this problem and/or have a solution, or know if the Developer account will be allowed for use at the competition?
  #5   Spotlight this post!  
Unread 25-01-2010, 19:33
ideasrule's Avatar
ideasrule ideasrule is offline
Registered User
FRC #0610 (Coyotes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Toronto
Posts: 108
ideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the roughideasrule is a jewel in the rough
Re: 2010 FRC Camera Live Feed Lag

The story behind this is interesting. Patrick suggested using the developer account to test the camera feed. By chance, I was busy doing something and couldn't tell him he was being stupid because I'd already tried that (which I did). By chance, I had changed the image resolution from 640x480 to 320x240. Against all odds, these two unlikely events happened at the same time and led to our strange discovery. (I changed the resolution back to 640x480 and the lag time became the familiar 1/2 s.)

Another possibly useful piece of info is that I was using the code to test the frame rate by measuring the time it took to get 300 fresh images. We got 5 fps on 640x480, 21 fps on 320x240, and 30 fps on 160x120. However, the live feed was certainly not operating at 5 fps at a resolution of 640x480, regardless of the account used. It always operated at 2 fps.
  #6   Spotlight this post!  
Unread 25-01-2010, 22:06
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: 2010 FRC Camera Live Feed Lag

We can confirm the behaviour that 610 is seeing. We get about 2 fps on the DS display, but there is a delay on top of that. The frames update at 2fps, but the frames we see are also more than 1s in the past. We notice this poor performance in the Driver account, even with 160x120 resolution frames.

Strangely, increasing the resolution does not seem to slow the framerates on the DS. In some cases the DS display updated faster on 640x480 than on 160x120.

However, the rate in which the cRIO processed the image was considerably faster with the small resolution.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #7   Spotlight this post!  
Unread 26-01-2010, 04:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: 2010 FRC Camera Live Feed Lag

Is the lag and frame rate in your system impacted at all by running wired vs. wireless?
  #8   Spotlight this post!  
Unread 26-01-2010, 13:20
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: 2010 FRC Camera Live Feed Lag

2 FPS is consistent with my benchmarks over in the C++ forums.

http://www.chiefdelphi.com/forums/sh...ad.php?t=80591
  #9   Spotlight this post!  
Unread 27-01-2010, 19:01
tutkows1's Avatar
tutkows1 tutkows1 is offline
Registered User
FRC #2077
 
Join Date: Jan 2010
Location: wisconsin
Posts: 44
tutkows1 is an unknown quantity at this point
Re: 2010 FRC Camera Live Feed Lag

We are haveing the same problem also, are your saying a quick fix for this problem is to run the driverstation under the developer account?
  #10   Spotlight this post!  
Unread 31-01-2010, 14:55
dmlawrence dmlawrence is offline
MIT '14
FRC #1751 (Warriors)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Long Island
Posts: 63
dmlawrence is an unknown quantity at this point
Re: 2010 FRC Camera Live Feed Lag

Same problem here as well
  #11   Spotlight this post!  
Unread 31-01-2010, 17:26
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: 2010 FRC Camera Live Feed Lag

I found the problem to be the graphs on the right side of the dashboard were causing a huge delay. I removed them and we now get near instant video (minus expected network latency). Our fixed dashboard is here http://www.chiefdelphi.com/forums/sh...ad.php?t=81378
  #12   Spotlight this post!  
Unread 31-01-2010, 17:46
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: 2010 FRC Camera Live Feed Lag

http://www.chiefdelphi.com/forums/sh...ad.php?t=81378

/\ is our solution. The graphs on the right side of the Dashboard were lagging the image considerably so we took them out of the Dashboard and the image is very fast now (only the expected network latency). The fixed Dashboard is attached
  #13   Spotlight this post!  
Unread 08-02-2010, 15:31
Damaku250's Avatar
Damaku250 Damaku250 is offline
Electromechaneumatics guy
AKA: Craig Hoo
FRC #3161 (H.T. Tronic Titans)
Team Role: Electrical
 
Join Date: Jan 2010
Rookie Year: 2010
Location: ON, Canada
Posts: 38
Damaku250 is an unknown quantity at this point
Re: 2010 FRC Camera Live Feed Lag

What do you guys mean by "logging into the camera?" Is it the Axis Camera setup? Or are we talking about logging in by navigating to its IP address (and what would that be if this is the case)?
__________________

-Rookie All Star Award [WAT Regional 2010]
Electrical/Control systems, Mechanical and Pneumatics teams, Human player
  #14   Spotlight this post!  
Unread 10-02-2010, 23:05
cheesepuffgd's Avatar
cheesepuffgd cheesepuffgd is offline
imperial majesty of all programming
FRC #0955 (raiderbot)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: corvallis
Posts: 8
cheesepuffgd is an unknown quantity at this point
Question Re: 2010 FRC Camera Live Feed Lag

I have had that problem with the camera feed. We are using the lowest resolution, we are running it in the developer account with nothing else open. it is programmed in C++. Is there anything I can do about this?
  #15   Spotlight this post!  
Unread 11-02-2010, 02:33
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,748
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: 2010 FRC Camera Live Feed Lag

Are you using the new update for C++? The second issue that can cause lag is that the driver station is bogged down. You can check with the task manager.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet Another Axis Camera Live Feed Issue z2daj FRC Control System 2 24-01-2010 13:47
Live Feed with Axis Camera CHSboy Programming 6 24-03-2009 14:43
2009 - Live camera feed to drivers during a match? Travis Hoffman Rules/Strategy 23 21-01-2009 17:43
Getting Live Feed from Axis Camera in Windriver Inoperational C/C++ 8 15-01-2009 01:21
live feed? miop Programming 1 02-02-2008 21:24


All times are GMT -5. The time now is 13:04.

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