Using 2 cameras

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!

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");

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.

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.

Are two cameras allowed on a robot?

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.