This example shows you how to use OAK camera for streaming to Foxglove Studio
. Example uses Foxglove
's websocket
to stream frames or point clouds.
Before beginning, you will have to run next command:
python3 requrements.txt
After that, run program with:
python3 main.py
and open Foxglove Studio
. When you open up the studio you will be prompted with the connection type. Chose Open connection
And after that chose Foxglove websocket
.
When you are successfully connected, chose Image
panel and your studio should look something like this:
By default, the program will stream Color
stream only. To enable other streams use next flags:
-l
forLeft
camera stream,-r
forRight
camera stream,-pcl
forPoint cloud
streaming,- and, if you wish to disable
Color
stream use-c
.
Running Point cloud
and Color
streams are used like this:
python3 main.py -pcl
Studio should now be displaying your point cloud
, if you open it up in the 3D
panel.