photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

CameraServer is lost on code deploy to roborio

Open bruingineer opened this issue 4 years ago • 4 comments

Everytime we deploy code to the roboRIO, the CameraServer does not show up in network tables. After a power cycle of the robot, the camera server shows up again.

Has anyone seen this behavior before?

in robotInit():

var cameraName = "mmal_service_16.1";
camera = new PhotonCamera(cameraName);

bruingineer avatar Feb 20 '22 00:02 bruingineer

I solved this by adding

var cameraName = "mmal_service_16.1";
if (camera == null)
        camera = new PhotonCamera(cameraName);

to robotPeriodic() or similar

bruingineer avatar Feb 20 '22 02:02 bruingineer

We are still getting

PhotonVision coprocessor at path /photonvision/mmal_service_16.1 not found on NetworkTable!

in our robot log when we deploy code to the robot.

It resolves itself on a robot power cycle.

bruingineer avatar Feb 22 '22 02:02 bruingineer

We have also experienced this issue as well. It appears to be very inconsistent on when it appears.

legoguy1000 avatar Mar 07 '22 21:03 legoguy1000

We're seeing this as well. Restarting photon or unplugging/replugging our coprocessor seems to be a working temporary fix.

trevnels avatar Mar 14 '22 00:03 trevnels

Is this issue still happening?

var cameraName = "mmal_service_16.1";
if (camera == null)
        camera = new PhotonCamera(cameraName);

to robotPeriodic() or similar

I would need to see more of your code implementation to trace an issue here. It could be in your robot code or the backend not publishing data to NT

srimanachanta avatar Dec 01 '23 04:12 srimanachanta