Its not clear if I need to create an HttpCamera to grab the stream from the Pi, and then create an MjpegStream from that, or if PhotonVision handles the video streaming on its own.
Try something like this:
m_camera = new HttpCamera(“PhotonVisionCamera”, “https://Photonvision.local:1181”);
PhotonVision does its own video streaming directly to the dashboard. If it’s connected to NetworkTables, it will appear in the list of cameras on Shuffleboard. Are you trying to programmatically put it in the layout? If so, what you want is ShuffleboardContainer.addCamera.
Hmm that did seem to be the case, but when I was messing with it earlier, I seemed to have to remove and re-add the camera to the layout to get it to show the stream whenever the robot was rebooted or PhotonVision was restarted. I’ll have to look at it some more.
Thanks for that “addCamera” method, I wasn’t aware of that.
You’re using the 2022 version of Shuffleboard, correct? 2020/2021 had an issue which could cause streams not to display.
Yes I am using the 2022 version.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.