Go to Post I always mean what I say. I just don't always say what I mean. - dlavery [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 09-02-2012, 21:53
CodeMonkey's Avatar
CodeMonkey CodeMonkey is offline
Self Proclaimed Ruler of Universe
AKA: Omar Issa Attar
FRC #0599 (Robodox)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Los Angeles, CA
Posts: 20
CodeMonkey is an unknown quantity at this point
How to Get Multiple Cameras on Robot

Hello everyone,
Attached is a guide to how to use multiple cameras on your robot. We didn't find any documentation so we decided to put some up ourselves. The guide includes powering and setting up multiple cameras, along with modifying the dashboard to accommodate multiple camera feeds. Hope this helps.

Robodox Programming
Attached Files
File Type: pdf The Robodox Guide to Multiple Cameras in FRC.pdf (1.60 MB, 380 views)
__________________
  #2   Spotlight this post!  
Unread 09-02-2012, 22:01
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: How to Get Multiple Cameras on Robot

Looks nice!

You should upload this as a white paper, so people will be able to reference it in the future.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #3   Spotlight this post!  
Unread 10-02-2012, 01:01
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: How to Get Multiple Cameras on Robot

Nice guide! If you've tried it, what frame rates are you getting when processing images from two cameras on the cRIO?
  #4   Spotlight this post!  
Unread 10-02-2012, 08:14
dbeckwith's Avatar
dbeckwith dbeckwith is offline
Lead Programmer
AKA: Daniel Beckwith
FRC #3205 (The Patriots)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: USA
Posts: 84
dbeckwith is an unknown quantity at this point
Re: How to Get Multiple Cameras on Robot

Awesome guide! I'm skeptical about the legality of wiring the second camera the way you said though. [R42C] and [R47] have me worried, probably just because they're so general. Can you clarify how you know that method is legal?
__________________
q = (2*b) | ~(2*b);

if (life.getLemons() != null) this.lemonade = new Drink(life.getLemons());
else throw new NoLemonsException("What now?");


  #5   Spotlight this post!  
Unread 10-02-2012, 17:48
CodeMonkey's Avatar
CodeMonkey CodeMonkey is offline
Self Proclaimed Ruler of Universe
AKA: Omar Issa Attar
FRC #0599 (Robodox)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Los Angeles, CA
Posts: 20
CodeMonkey is an unknown quantity at this point
Re: How to Get Multiple Cameras on Robot

We get 30 fps on the cameras. I am not 100% sure about legality but it should be okay because it should count as a custom circuit. I will try to check on it and update you.
__________________
  #6   Spotlight this post!  
Unread 10-02-2012, 18:19
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: How to Get Multiple Cameras on Robot

I'm pretty sure that robot side code doesn't do what you think it does. Have you tried comparing the objects you get back from the two GetInstance calls? I believe they will be the same and both point to the camera at .11 based on AxisCamera.cpp.
  #7   Spotlight this post!  
Unread 10-02-2012, 21:41
CodeMonkey's Avatar
CodeMonkey CodeMonkey is offline
Self Proclaimed Ruler of Universe
AKA: Omar Issa Attar
FRC #0599 (Robodox)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Los Angeles, CA
Posts: 20
CodeMonkey is an unknown quantity at this point
Re: How to Get Multiple Cameras on Robot

I am pretty sure they work because that is what we have in our code and we get back feed from both cameras. I know that specifying the IP address is necessary because without specifying we couldn't see the camera. So I don't think the GetInstance methods point to the same object if you specify the IP. Add anyways you specify the IP addresses in the Labview code for the dashboard so it shouldn't matter.
__________________
  #8   Spotlight this post!  
Unread 10-02-2012, 21:48
Ziv Ziv is offline
Has code to be writing...
FRC #0125 (Nutrons)
Team Role: Alumni
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Boston
Posts: 39
Ziv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of lightZiv is a glorious beacon of light
Re: How to Get Multiple Cameras on Robot

Woah, 30 FPS is definitely fast enough. Is the robot running target tracking for two cameras, is the laptop doing the tracking work, or are the images just for driver convenience? You're probably already aware that the frame rate on the dashboard isn't necessarily the frame rate than the robot. (We know this from overlaying outlines of the target rectangles found by the robot on the image displayed by the dashboard.)
  #9   Spotlight this post!  
Unread 10-02-2012, 23:49
xraymypanda's Avatar
xraymypanda xraymypanda is offline
Cowboy programmer
AKA: Chris M
FRC #0599 (RoboDox)
Team Role: Programmer
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Granada Hills,CA
Posts: 82
xraymypanda has a spectacular aura aboutxraymypanda has a spectacular aura about
Re: How to Get Multiple Cameras on Robot

Quote:
Is the robot running target tracking for two cameras, is the laptop doing the tracking work, or are the images just for driver convenience?
We are only using one camera for tracking, the other one is going to be for ball acquisition. We are trying to configure the laptop to do all of the processing and send the data back to the c-RIO because we don't have a camera plugged directly into the c-RIO. Getting feed from both cameras is certainly for driver convenience, however it is worth noting that trying to view the feed from both cameras side by side at the same time gives us a significant amount of lag, but I think we will have a switch to switch between which feed we would like to view.
__________________

2011: Head Scout
2012: (figure)Head Programmer
2013: Head Programmer, Chief Strategist, Outreach Executive, and Driver
  #10   Spotlight this post!  
Unread 11-02-2012, 05:48
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: How to Get Multiple Cameras on Robot

Quote:
Originally Posted by CodeMonkey View Post
I am pretty sure they work because that is what we have in our code and we get back feed from both cameras. I know that specifying the IP address is necessary because without specifying we couldn't see the camera. So I don't think the GetInstance methods point to the same object if you specify the IP. Add anyways you specify the IP addresses in the Labview code for the dashboard so it shouldn't matter.
You don't need anything in your C++ code at all to get feedback on your Dashboard from both cameras. The Dashboard requests separate streams from the camera that don't require the cRIO to be present.
  #11   Spotlight this post!  
Unread 11-02-2012, 12:30
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: How to Get Multiple Cameras on Robot

Quote:
Originally Posted by dbeckwith View Post
Awesome guide! I'm skeptical about the legality of wiring the second camera the way you said though. [R42C] and [R47] have me worried, probably just because they're so general. Can you clarify how you know that method is legal?
Looks good to me. The custom circuit in this case begins with the DC switching power supply's leads, and ends with the camera.

Hopefully there's a proper splice under the white electrical tape.

Also, you might want to consider a smaller circuit breaker. For custom circuits, the circuit must be protected with a 40 A or smaller value (or 30 A in the smaller terminals, by virtue of what Snap Action sells). But the blue box in [R43] suggests that smaller Snap Action VB3 auto-resetting breakers can be used in the PDB. Pick a value more appropriate to what you camera and power supply will draw.
  #12   Spotlight this post!  
Unread 23-02-2012, 18:55
Savvy578's Avatar
Savvy578 Savvy578 is offline
Registered User
AKA: Savannah
FRC #0578 (Red Raider Robotics)
Team Role: Mechanical
 
Join Date: May 2011
Rookie Year: 2010
Location: Fairport
Posts: 32
Savvy578 is an unknown quantity at this point
Re: How to Get Multiple Cameras on Robot

How long did this take to do and how much weight is added the extra camera?
  #13   Spotlight this post!  
Unread 19-03-2012, 19:03
jawebste's Avatar
jawebste jawebste is offline
Mentor - HAZMATs 2145
AKA: Jean-Ann Webster
FRC #2145 (HAZMATs)
Team Role: Mentor
 
Join Date: Sep 2008
Rookie Year: 2007
Location: Lake Fenton
Posts: 27
jawebste is a jewel in the roughjawebste is a jewel in the roughjawebste is a jewel in the roughjawebste is a jewel in the rough
Re: How to Get Multiple Cameras on Robot

Thanks so much! Going to try.We'll let you know how it works.
  #14   Spotlight this post!  
Unread 19-03-2012, 19:41
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,685
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: How to Get Multiple Cameras on Robot

For the record, we implemented this a Bayou with a few modifications. First, we're splicing into our exist camera power wires to power both cameras off the 5V supply from the PD. Secondly, we modified our dashboard slightly differently, pretty much completely copying the original camera loop so the dashboard would still work properly with a different team number, etc.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
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


All times are GMT -5. The time now is 07:55.

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