Go to Post Team 71: So good at Strategy they already have figured out next years game before the GDC has even met. - IKE [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 05-01-2013, 21:38
ekovacs ekovacs is offline
Registered User
AKA: Evan Kovacs
FRC #2539
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Palmyra, PA
Posts: 21
ekovacs is on a distinguished road
Multiple cameras

Hi,

Some of the members on my team were wondering about the feasibility of using two cameras on the robot at once. One of which we would use for image processing to aim at the target, which would be on the front of the robot. The other camera would be displayed on the dashboard and used for the drivers to line up with game elements. Please let me know if this is possible so that I can let my fellow team members know.

Thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2013, 22:09
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Multiple cameras

Quote:
Originally Posted by ekovacs View Post
Hi,

Some of the members on my team were wondering about the feasibility of using two cameras on the robot at once. One of which we would use for image processing to aim at the target, which would be on the front of the robot. The other camera would be displayed on the dashboard and used for the drivers to line up with game elements. Please let me know if this is possible so that I can let my fellow team members know.

Thanks in advance.
This is possible. Connect one into the cRIO for vision processing, and attach one directly onto the wireless router.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2013, 22:20
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Multiple cameras

Quote:
Originally Posted by Patrick Chiang View Post
This is possible. Connect one into the cRIO for vision processing, and attach one directly onto the wireless router.
Unless he has the cRIO v2, which I imagine most teams will be using this year since the robots are smaller and weight is a huge issue with the climbing.

In that case, you would need to plug both cameras into the router, and make changes to the dashboard to accommodate vision processing on the driverstation side.

Just be very careful about framerate, resolution, and compression so that you don't run into the 7Mb/s bandwidth limit on the FMS.
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2013, 22:36
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Multiple cameras

I 2nd the notion of watching your frame rate to the driver station. They're bandwidth limiting the comms to only 7 Mbps this year. 320x240x30 FPS is 1/3 of your bandwidth without some serious compression.

Good luck...
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2013, 22:46
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Multiple cameras

Quote:
Originally Posted by taichichuan View Post
I 2nd the notion of watching your frame rate to the driver station. They're bandwidth limiting the comms to only 7 Mbps this year. 320x240x30 FPS is 1/3 of your bandwidth without some serious compression.

Good luck...
30 frames per second? I don't recall ever being able to get a consistent 30FPS even with unlimited bandwidth. (Or heck 10) That's why the driver needs to rely on more than just the live feed.
Reply With Quote
  #6   Spotlight this post!  
Unread 06-01-2013, 08:37
ekovacs ekovacs is offline
Registered User
AKA: Evan Kovacs
FRC #2539
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2011
Location: Palmyra, PA
Posts: 21
ekovacs is on a distinguished road
Re: Multiple cameras

Hi,

Thanks for the quick replies. I have an 8 slot CRIO, so would the IP address for the one plugging straight into it would be the normal 10.25.39.11 for the feed to the DS? Could the one plugged into the router have an IP address that is anything not used on the 10.29.39.XX subnet. Then our code or dashboard would get images from this camera.

On the issue of bandwidth, we only ever need the second camera for aiming. This will be our first year doing image processing so we might do it on board the CRIO, not using any wireless bandwith.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2013, 08:51
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,893
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Multiple cameras

In the older Crio setups port 2 on the Crio was set to talk to the camera on its defaullt IP address. The dashboard got its image from the crio not the camera. I am not sure is the current image does the same for port 2. A camera with 10.xx.xx.11 needs to be plugged into the Dlink bridge, not port 2 on the crio. You can use a second camera with a different IP address. We did it successfully last year. You will need to keep a eye on band width. You generally do not need 30 FPS or full color depth though.
Reply With Quote
  #8   Spotlight this post!  
Unread 06-01-2013, 08:58
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Multiple cameras

Plugging both cameras into the robot bridge is an easier way of handling two cameras. The cameras won't affect your wireless bandwidth limitation unless the images are requested over wireless, i.e., the Driver Station makes the request for images from the particular camera.
If both are connected to the robot bridge, then the camera IP addresses would be 10.25.39.11 for the first one, and probably 10.25.39.12 for the second camera. Really your choice of .12 and higher.

The camera used by the cRIO would not send wireless packets, just local Ethernet packets to the cRIO.
The same as if you used a second image processing computer on the robot that requested camera images over an Ethernet connection.

That said, using the second cRIO port is fine too.
That particular port expects the camera's factory default IP address of 192.168.1.50
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 06-01-2013 at 09:02.
Reply With Quote
  #9   Spotlight this post!  
Unread 06-01-2013, 19:16
mprasolov's Avatar
mprasolov mprasolov is offline
Jack of all trades
AKA: Misha Prasolov
FRC #2823 (The Automatons)
Team Role: Student
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Saint Paul, MN
Posts: 36
mprasolov is an unknown quantity at this point
Re: Multiple cameras

Our team is considering using a camera and a Kinect on our robot.

1) Would that work network wise?

2) Has anyone used the Kinect on their robot with target tracking success?
Reply With Quote
  #10   Spotlight this post!  
Unread 07-01-2013, 16:12
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Multiple cameras

Using the kinect was the subject of much discussion last year; very few actually did it. The kinect uses USB (not an IP camera), which the CRIO doesn't support; ideas such as putting a netbook on the robot were kicked around, and solutions of microComputers were thrown around. It's a huge undertaking as far as I know.
Reply With Quote
  #11   Spotlight this post!  
Unread 07-01-2013, 18:39
nightpool's Avatar
nightpool nightpool is offline
robotRectifier
AKA: Evan
no team (formerly of CORE 2062)
Team Role: Alumni
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Waukesha, WI
Posts: 81
nightpool is on a distinguished road
Re: Multiple cameras

This may have been made extremely easier with the new RaspberryPi...
__________________
Proud alum of CORE 2062.
www.core2062.com
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


All times are GMT -5. The time now is 02:56.

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