What do I need to add to my code for my robot to recognize my USB camera and LimeLight?

We are using two cameras this year, one for target tracking and one for driver vision. We have the driver cam connected via USB and the LimeLight via ethernet, but I don’t know how to implement the cameras into the code and into smartdashboard.
We are using the Java CommandRobot template, if that helps.
What do I need to add to make the robot and the cameras communicate?

Thank you!

I would recommend using shuffleboard instead of SmartDashboard. With shuffleboard you should be able to just pull limelight streams from the side panel under camera server.
For the usb cam see https://docs.wpilib.org/en/latest/docs/software/vision-processing/introduction/cameraserver-class.html

I finally figured out how to get the cameras to display on smartDashBoard, but I still am wondering how I get my code to “initialize” the LimeLight tables, if that makes sense.

Thank you for you help with the usb cam!

You mean how to pull the data from limelight? What language are you using?

I actually just figured it out!

Thank you though

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.