Go to Post I'm currently working on design for a bin made out of concrete that will not break for next year's competition... :D - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 03-09-2010, 01:06 PM
z.s.tar.gz z.s.tar.gz is offline
Registered User
FRC #3242
 
Join Date: Jan 2010
Location: Central Florida
Posts: 19
z.s.tar.gz is an unknown quantity at this point
Camera live feed not working

All I want is for the camera to broadcast a live feed back to the driver station. The instructions aren't very clear about this. There is some kind of PCVideoServer class, but I don't really know what to do with it.

Please help, as you can tell I'm a little short on time =P
Reply With Quote
  #2   Spotlight this post!  
Unread 03-09-2010, 02:16 PM
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Camera live feed not working

All you should have to do is create a new AxisCamera object. It will start the video server for you.

At the top of your file, add
Code:
#include "Vision/AxisCamera.h"
Then in your initialization code add this
Code:
AxisCamera &axisCam = AxisCamera::GetInstance();
That should get you the video stream back to the default dashboard at the driver station.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-09-2010, 02:24 PM
z.s.tar.gz z.s.tar.gz is offline
Registered User
FRC #3242
 
Join Date: Jan 2010
Location: Central Florida
Posts: 19
z.s.tar.gz is an unknown quantity at this point
Re: Camera live feed not working

Thank you. I did that which means that the problem is with my dev laptop downloading the code, or lack thereof.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-09-2010, 02:27 PM
Mike Soukup's Avatar
Mike Soukup Mike Soukup is offline
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
Mike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond reputeMike Soukup has a reputation beyond repute
Re: Camera live feed not working

Also make sure you have the latest DS version installed and (I know this is an obvious one, but I have to mention it) the camera is configured properly according to the instructions that FIRST provided. You should also read over the code in the vision demo project that came with this year's software package. They put some delays before trying to communicate with the camera. Get everything to work correctly with their code, then add the correct pieces to yours.
Reply With Quote
  #5   Spotlight this post!  
Unread 03-09-2010, 04:58 PM
z.s.tar.gz z.s.tar.gz is offline
Registered User
FRC #3242
 
Join Date: Jan 2010
Location: Central Florida
Posts: 19
z.s.tar.gz is an unknown quantity at this point
Re: Camera live feed not working

I tried just uploading the code from the camera example onto the robot after I did the DS update again, but it still doesn't work.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-10-2010, 10:31 AM
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: Camera live feed not working

The DS update is notorious for not working. The recommended approach seems to be to uninstall the DS software completely, manually delete any files it left behind, and then run the update. That way you make sure there's no chance that the updater is leaving behind things it shouldn't.

To return to an earlier point, the PCVideoServer class is indeed responsible for sending video to your dashboard, but one is automatically started upon getting an instance of AxisCamera.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 03-10-2010, 02:01 PM
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: Camera live feed not working

Quote:
Originally Posted by slavik262 View Post
The DS update is notorious for not working...
The first update had an issue that kept it from overwriting the older dashboard app with the newer one, and the effective workaround was to run it once to uninstall everything then run it again to reinstall the proper version of everything. The current update does not have that problem, and the workaround is no longer necessary.
Reply With Quote
  #8   Spotlight this post!  
Unread 03-12-2010, 03:02 AM
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: Camera live feed not working

Check this:

http://www.chiefdelphi.com/forums/sh...ad.php?t=84179
Reply With Quote
  #9   Spotlight this post!  
Unread 03-16-2010, 07:21 PM
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: Camera live feed not working

double-check the physical wiring of the camera

Also, are you letting the system have a bit of time to load? The camera loads later than the cRIO code so there is a delay before images are sent.

What is the color of the ring around the camera lens while the robot is on?
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #10   Spotlight this post!  
Unread 03-16-2010, 08:25 PM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Camera live feed not working

Quote:
Originally Posted by Radical Pi View Post
double-check the physical wiring of the camera
Just want to add that make sure the ethernet cable is a cross-over cable.
__________________
Reply With Quote
  #11   Spotlight this post!  
Unread 03-17-2010, 10:17 PM
brianelite brianelite is offline
Registered User
FRC #2898
 
Join Date: Feb 2009
Location: oregon
Posts: 36
brianelite has a spectacular aura aboutbrianelite has a spectacular aura aboutbrianelite has a spectacular aura about
Re: Camera live feed not working

Code:
   AxisCamera &camera = AxisCamera::GetInstance();
                camera.WriteResolution(AxisCamera::kResolution_320x240);
                camera.WriteCompression(20);
                camera.WriteBrightness(0);
Is our camera code an it works fine... not sure what happens if you only have the first line
__________________
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

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


All times are GMT -5. The time now is 09:25 AM.

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