Sample Sessions

These sample sessions will provide sample workflows for working with pcaps, sensors, and OSFs. Either can be done independently, but users with access to a sensor may wish to work with the sensor first, so that they will have recorded a pcap play back in the second sample.

Sample sensor session

Connect a sensor via Ethernet to the system with Ouster SDK installed. .. note:

Bear in mind that following the steps below will modify the sensor's configuration.

First we configure the sensor with standard ports, azimuth window, operating mode, and auto udp dest:

$ ouster-cli source <SENSOR HOSTNAME> config

You should get a return that looks like

No config specified; using defaults and auto UDP dest:
{
    "azimuth_window":
    [
        0,
        360000
    ],
    "operating_mode": "NORMAL",
    "udp_port_imu": 7503,
    "udp_port_lidar": 7502
}

Let’s see what the sensor is seeing in a pretty visualizer:

$ ouster-cli source <SENSOR HOSTNAME> viz

That looked nice! Let’s record ten seconds of data to a pcap so we can view it on repeat!

$ ouster-cli source <SENSOR HOSTNAME> record -s 10

That should produce screen output that looks something like:

Connecting to <SENSOR HOSTNAME>
Recording for up to 10.0 seconds...
Wrote X GiB to ./OS-<SENSOR_HOSTNAME>-<LIDAR_MODE>_<DATE>.pcap

Go ahead and look in the current directory for the named pcap file and associated metadata file.

Continue to the next section, Sample pcap session to see what you can do with your new pcap file.

Sample pcap session

If you don’t have a pcap lying around or that you just recorded from a sensor, you can download one the OS2 bridge sample data and unzip the contents.

Let’s take a look at your pcap:

$ ouster-cli source <PCAP_FILE> info

This should output something that looks like:

That tells us the number of packets belonging to each port captured in the pcap, and the associated size.

To visualize the pcap at 2x speed while looping back:

$ ouster-cli source <PCAP_FILE.pcap> viz -r 2.0 -e loop

You can check check out all the available options by typing --help after ouster-cli source <PCAP_FILE.pcap> viz.