Skip to content

Latest commit

 

History

History
 
 

gen2-foxglove

Gen2 foxglove

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

pic1

And after that chose Foxglove websocket.

pic2

When you are successfully connected, chose Image panel and your studio should look something like this:

pic3

By default, the program will stream Color stream only. To enable other streams use next flags:

  • -l for Left camera stream,
  • -r for Right camera stream,
  • -pcl for Point 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.

pic4