Skip to content

USB camera setup

Bijay Gaudel edited this page Jun 20, 2023 · 4 revisions

We use voxl-uvc-server to get video frames in the MPA pipeline and [voxl-streamer] to stream over VLC or QGC.

inside voxl

lsusb to get ID 1d6c:0103

then lsusb -v -d 1d6c:0103 to get the vendor id in hexadecimal. then

rb5: voxl-uvc-server -d -v 0x1d6c
Enabling debug messages
voxl-uvc-server starting
Image resolution 640x480, 30 fps chosen
Vendor ID 0x1d6c chosen
UVC initialized
Device 1d6c:0000 found
Device opened
uvc_get_stream_ctrl_format_size succeeded for format YUYV
Streaming starting
Got frame callback! frame_format = 3, width = 640, height = 480, length = 617448, ptr = (nil)
 * got image 30
 * got image 60

if running properly, we should have uvc added to the directory rb5:/run/mpa/.

For streaming

then in a new terminal run

rb5: voxl-configure-streamer -i uvc
rb5: sudo systemctl start voxl-streamer 
rb5: sudo systemctl enable voxl-streamer

finally, set up the RTSP URL in VLC or QGC as described here. Also, bitrate can be setup.

Camera Calibration

Clone this wiki locally