photonvision icon indicating copy to clipboard operation
photonvision copied to clipboard

Expose WPLIB switched camera to allow quick driver station switching between cameras

Open jsimpso81 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Create a "virtual" switched camera that allows a single stream to the dashboard to switch between cameras by writing network table value to the dashboard. This functionality exists on the WPILIBPI.

Describe alternatives you've considered None that are really practical.

Additional context None

jsimpso81 avatar Dec 06 '24 18:12 jsimpso81

Wdym switched camer?

mcm001 avatar Dec 07 '24 17:12 mcm001

Wpilibpi has a virtual camera that can stream back to the dashboard. The virtual camera can instantly switch its input to a different physical camera by changing the value of a network table variable written to the coprocessor. This happens quickly and doesn’t disrupt the dashboard stream. It is useful to give drivers different views ( intake, vs field view, for example ).

On Dec 7, 2024, at 12:03 PM, Matt @.***> wrote:

 Wdym switched camer?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

jsimpso81 avatar Dec 07 '24 18:12 jsimpso81

That feels like a feature that belongs as part of the dashboard, not photon, to me?

mcm001 avatar Dec 07 '24 21:12 mcm001

It takes time to switch h to a new stream from the dashboard even if it is programmatically controlled.   ( new socket connection and other negotiation, having the  coprocessor switch makes it work faster and smoother. ( hence the reason it was in wpilibpi ).  On Dec 7, 2024, at 4:02 PM, Matt @.***> wrote: That feels like a feature that belongs as part of the dashboard, not photon, to me?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

jsimpso81 avatar Dec 07 '24 23:12 jsimpso81

I assumed that this would be easy to do since it was already done in Wpilibpi.

jsimpso81 avatar Jan 20 '25 17:01 jsimpso81

I assumed that this would be easy to do since it was already done in Wpilibpi.

In that case, would you be willing to take on this issue?

samfreund avatar Oct 13 '25 21:10 samfreund