Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Multiple Cameras? (http://www.chiefdelphi.com/forums/showthread.php?t=112743)

lunamoonthroat 04-02-2013 17:56

Multiple Cameras?
 
Hey All you FIRST'ers!

We're trying to run two cameras on our robot for ranging, but the AxisCamera is a singleton class (we're using java), and our custom code (overriding the actual AxisCamera doesn't seem to interface for creating multiple cameras. Any ideas? Regards,

flamer075 04-02-2013 18:39

Re: Multiple Cameras?
 
Hey, my team decided that we wanted 2 cameras going with a dual live feed last year. We also coded in java, but for getting two cameras at once I would recommend using a smart dashboard or using labview and modifying it so you can get two live feeds at once. If you don't mind why would you want to use two cameras for this game.

Kusha 04-02-2013 18:40

Re: Multiple Cameras?
 
Quote:

Originally Posted by flamer075 (Post 1227509)
Hey, my team decided that we wanted 2 cameras going with a dual live feed last year. We also coded in java, but for getting two cameras at once I would recommend using a smart dashboard or using labview and modifying it so you can get two live feeds at once. If you don't mind why would you want to use two cameras for this game.

Why did you use duel cameras last year? If you don't mind me asking.

xraymypanda 04-02-2013 18:53

Re: Multiple Cameras?
 
With regards to the set up of two cameras:www.chiefdelphi.com/media/papers/2634
However, beware exceeding your bandwidth limit.

lunamoonthroat 05-02-2013 07:34

Re: Multiple Cameras?
 
Thanks @xraymypanda! However, I already looked at that document, and it may be helpful for C++ and LabView, but for the Java bindings, it is unfortunately mute. Because the Java binding is somehow a singleton due to the way it is ported, after AxisCamera.getInstance(ip1) is called, AxisCamera.getInstance(ip2) returns a reference to ip1 instead.
@flamer075: We are trying to get more accurate ranging measurements from stereoscopic vision.

mathking 05-02-2013 08:22

Re: Multiple Cameras?
 
We used two cameras in Java last year using Smartdashboard. We did it because one was for targeting and the other (added after the regional for the championships) was looking down for ball gathering purposes. Others have said it but beware of bandwidth issues. If you want some technical help let me know and I will put one of our programmers in touch with you. Actually I think that some two camera code is already posted on our github repository.

IndySam 05-02-2013 08:32

Re: Multiple Cameras?
 
Like Greg we used two cameras last year, one mounted high with the shooter and the other down low with the ball pickup mostly used to see under the bridge.

We didn't need high resolution for either task so we set the resolution very low and never had any trouble

JohnFogarty 05-02-2013 09:21

Re: Multiple Cameras?
 
I used two cameras as well. SmartDashboard is by far the easiest thing to use.
Make sure you set the less needed camera to a lower resolution so you don't max out your bandwidth.

lunamoonthroat 05-02-2013 10:55

Re: Multiple Cameras?
 
By SmartDashboard, do you mean connecting both cameras to the dashboard, then getting images from the dashboard instead of the camera directly?


All times are GMT -5. The time now is 23:53.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi