FRC2706 / 2020-2706-Robot-Code

The Robot Code for the 2020 FIRST Robotics Competition INFINITE RECHARGE
Other
4 stars 2 forks source link

USB Camera #10

Closed nicojopr closed 4 years ago

kevlam2706 commented 4 years ago

We can directly support a USB camera plugged into the RoboRio and generate a CameraStream that is sent back to the driver station laptop. It can be viewed in a dashboard such as Shuffleboard.

However, the Vision team also supports streaming camera signals, coming from the Raspberry Pi that is driving the external vision system. This can also be streamed to the driver station laptop, and viewed in something like a web browser or possibly also by a dashboard tool such as Shuffleboard.

Why choose one approach over the other? We need to consider:

Whichever approach(es) we support, we need to provide the code, if any, to initialize it, and set it up on the driver station.

Eden-D-Zhang commented 4 years ago

I tried to run the USB camera on the RoboRIO, and tried with different resolutions. Ethan T. also did similar things in the preseason. With higher resolutions, there was latency and bandwidth was an issue. To get within reasonable bandwidth/latency, resolution had to be pretty low. A pi would be ideal.