Go to Post Why follow when you can lead? - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 11-01-2010, 19:32
bensherman's Avatar
bensherman bensherman is offline
Registered User
AKA: Ben Sherman
FRC #1676 (The Pascack Pi-oneers)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Montvale, NJ
Posts: 19
bensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of light
cRio and Multiple Cameras

Today, at our first brainstorming meeting, we were discussing the possibility of adding a second camera to our bot for better viewing ability. I was told that this is very likely not possible because of hardware confliction on the cRio. I'd like to be 100% sure that adding a second camera is not possible. I thought of connecting the two cameras through a switch and then connecting the ethernet cables to the cRio RJ45 camera port. I checked the camera manual, and read that IP addresses can be changed, so there's no problem on that end. But, would the cRio only attempt to read the data from one camera, and if a second camera could be added, what would the performance be when using live view on the new driver stations. I'd suspect that the small PPC processor in the cRio wouldn't handle two live video feeds well. In any case, is adding two or more cameras to the cRio possible? If so, how could this be done.
Thanks - Ben Sherman
  #2   Spotlight this post!  
Unread 11-01-2010, 20:40
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: cRio and Multiple Cameras

I don't see a technical reason why that wouldn't be possible. However the current libraries would not allow for that, and believe the code which you would need access to in order to add that functionallity is not available to us.
__________________
Eric Haskins KC9JVH
  #3   Spotlight this post!  
Unread 11-01-2010, 20:40
360skier 360skier is offline
RTFM!!
AKA: Eric A.
FRC #1334 (Red Devils)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Oakville, Ontario
Posts: 45
360skier is an unknown quantity at this point
Re: cRio and Multiple Cameras

I believe that this is possible, but you'll need to write your own camera program. I know that last year there was a restriction that you could plug in one and only one camera to the 2nd Crio port, but I believe this was eliminated this year so we could use CAN through the port (please correct me if I just skipped over it in the manual).

Either way, I'm fairly sure you'd have to write your own software to receive images from the second camera. Most of is you could probably copy and paste from the existing camera file, but you'd have to change IP adresses and such.
__________________
  #4   Spotlight this post!  
Unread 11-01-2010, 20:46
bensherman's Avatar
bensherman bensherman is offline
Registered User
AKA: Ben Sherman
FRC #1676 (The Pascack Pi-oneers)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Montvale, NJ
Posts: 19
bensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of light
Re: cRio and Multiple Cameras

Can you log into those cameras and view the feed in an internet browser?
  #5   Spotlight this post!  
Unread 11-01-2010, 21:03
bensherman's Avatar
bensherman bensherman is offline
Registered User
AKA: Ben Sherman
FRC #1676 (The Pascack Pi-oneers)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Montvale, NJ
Posts: 19
bensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of light
Re: cRio and Multiple Cameras

Do those cameras have a built in web server in which you can view the feed?
  #6   Spotlight this post!  
Unread 11-01-2010, 23:34
JamesByrne's Avatar
JamesByrne JamesByrne is offline
Registered User
FRC #0360 (The revelution)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Tacoma
Posts: 74
JamesByrne is on a distinguished road
Re: cRio and Multiple Cameras

There is a web interface to the cameras, I do not know wether you can use it on the field or not. I think it would be better to build it into a dashboard program.
__________________
  #7   Spotlight this post!  
Unread 12-01-2010, 06:52
bensherman's Avatar
bensherman bensherman is offline
Registered User
AKA: Ben Sherman
FRC #1676 (The Pascack Pi-oneers)
Team Role: Electrical
 
Join Date: Nov 2009
Rookie Year: 2009
Location: Montvale, NJ
Posts: 19
bensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of lightbensherman is a glorious beacon of light
Re: cRio and Multiple Cameras

Does the processor in the cRio have enough power to handle streaming the two live video feeds?
  #8   Spotlight this post!  
Unread 12-01-2010, 07:47
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,752
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: cRio and Multiple Cameras

The cRIO can stream compressed video feeds pretty easily since it is a simply memory copy. The cRIO doesn't need to decode and encode the video. To decode and process more video will take more resources, but presumably you are talking about using one or the other camera at a time or just streaming. Anyway, the WPILib camera libs were not well tested with multiple cameras. I know that the LV library was written to support this, but it wouldn't surprise me that there will be some bugs.

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
3D screen and cameras N7UJJ Technical Discussion 1 28-10-2009 01:45
Turrets and cameras Doug Leppard Technical Discussion 51 02-04-2009 12:37
team colors and misguided cameras bobbyt14 Programming 12 14-01-2009 10:00
Two cameras: Pros and Cons cooknl Programming 1 12-01-2006 20:57
On board cameras and vision systems and robots! oh my! archiver 2000 1 23-06-2002 23:02


All times are GMT -5. The time now is 18: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