Hi everyone, I am part of a rookie team and we are experiencing difficulties with connecting our webcam to the FRC PC dashboard. Even though we are able to successfully connect to the RoboRio and deploy code, and our webcam is physically connected to the RoboRio, we aren’t getting any camera feed. Also, the bottom left corner of the PC Dashboard has a dropdown menu that says ‘No Camera Selection’, and there aren’t any other options to select. It keeps saying it’s ‘waiting for Network Table Connection to Robot’, even after restarting both the PC dashboard and the Driver Station multiple times.
Looking in your Driver Station config tab (the one with the gear), what is your Dashboard Type?
If you’re using Default I’m not sure off the top of my head what extra steps may be required to have the camera show (maybe there are none, I can’t get the DS to connect to the simulated robot, that may include the Default dashboard).
I’m 99% sure that you need the code for the camera server regardless of Dashboard type, so you should be right with CameraServer.getInstance().startAutomaticCapture(); somewhere.
Keeping in mind it only needs to be run once, so a constructor is a good place for this.
If you switch the Dashboard Type to ShuffleBoard, or launch ShuffleBoard separately, you should be able to see your camera feed there by dragging and dropping it on the canvas.
I think this line is key. The dashboard is not connected to the robot via network tables. This can be confirmed by looking at the “Basic” tab and checking whether the NT Connected light is illuminated or not (bright green vs dark green). If not, then you need to troubleshoot that. If the light IS illuminated, then it would appear the robot isn’t setting the correct values into networktables.
Let us know which branch to follow and we can help provide further troubleshooting steps.
Hi, thanks for your response! The dashboard type is default. I tried switching to Shuffleboard, but it said there is ‘no data available’ under the CameraServer. The webcam is connected to the RoboRio via USB.
Given that you can see data in ShuffleBoard, but not the Default Dashboard, and the Driver Station connects to the robot, it sounds like a firewall issue.
On the camera note, since ShuffleBoard hasn’t picked it up, it doesn’t sound like it’s running. Where are you starting the camera server in your code, and have you confirmed that it is executing?
If you think it is executing, and somehow isn’t being added to the Network Tables (which is how the Dashboard and ShuffleBoard find out about it), you can try to navigate to http://roborio-TEAM-frc.local:1181/ (where TEAM is your team number). If the camera server is running, that page should load.
Hi, I checked- all the firewalls on the driver station laptop are disabled.
As for the code, I think that is our issue: we hadn’t written in any code for the camera yet. We’re working on that today, I’ll let you know if it works.
Regarding the Default Dashboard not connecting, could you verify whether or not the keys in the Variables tab have black diamonds next to them? (If they have them as shown, it could indicate the Dashboard is not connected to the NetworkTables, as also indicated by the NT Connection light in the Drive tab)
Just a side note for yall, last year during competition, the orange hat guy said the default dashboard sometime can be finicky and suggested that we use smartdashboard for looking at camera. Idk if everyone have the problem but our team definitely had problems with default dashboard before.
Hi, we tested it out today and it worked! Turns out it was just that missing bit of code that was the problem. Thanks so much for your help and advice, bsimmons and Fletch1373!