Log in

View Full Version : Using 2 cameras


nonamedude
06-02-2012, 01:05
Hey guys,

Has anyone tried using two cameras? If so, how do you get the two different images , because it seems that I am only allowed to set one instance of camera.

I have set on camera to 10.xx.yy.11 and the other to 10.xx.yy.12.
I can ping both cameras so the connections should be fine.

Thanks!

nickpeq
06-02-2012, 07:55
You can try camera.getInstance(10.xx.yy.12) but I don't think it will allow two cameras.

cgmv123
06-02-2012, 09:48
You can try camera.getInstance(10.xx.yy.12) but I don't think it will allow two cameras.

That's camera.getInstance("10.xx.yy.12");

sjspry
06-02-2012, 16:44
You could possibly switch between the two while running, but this might be a slow process. I would suggest moving any graphical code off the classmate.

eddie12390
06-02-2012, 19:33
In the SMARTDASHBOARD we are able to use two cameras. Put both of them on seperate IPs and configure the correct IPs on the dashboard and they'll work fine.

ksafin
06-02-2012, 19:55
Are two cameras allowed on a robot?

nonamedude
06-02-2012, 21:20
I dont think there is anything that says you cannot have 2 cameras on the robot. How do you configure the two cameras on the SMARTDASHBOARD?.

eddie12390
07-02-2012, 13:38
I dont think there is anything that says you cannot have 2 cameras on the robot. How do you configure the two cameras on the SMARTDASHBOARD?.

I have yet to find a rule that tells me that I can't have two.

Simply install the SmartDashboard and add two camera widgets instead of one and change the IP in the "Properties" menu.