ouster-lidar / ouster_example

Ouster, Inc. sample code
Other
448 stars 432 forks source link

PCAP recording does not show any frames when used in python or ouster-cli #599

Open iAmir97 opened 1 week ago

iAmir97 commented 1 week ago

Describe the bug I have 2 PCAP recordings from 2 different settings, both were used with the new Ouster Studio

    with open(json, 'r') as f:
            metadata = client.SensorInfo(f.read())

    source = pcap.Pcap(pcap_path, metadata)

    # precompute xyzlut to save computation in a loop
    xyzlut = client.XYZLut(metadata)

    # create an iterator of LidarScans from pcap and bound it if num is specified
    scans = iter(client.Scans(source))

    scans = islice(scans, 10)

    for idx, scan in enumerate(scans):
        print(idx)

for example this snippet would not print anything I tried also using the ouster cli

 ouster-cli source example.pcap save "out.csv"
loading metadata from ['example.json']
[2024-06-28 13:18:02.400] [ouster::sensor] [info] parsing non-legacy metadata format
Saving CSV file at out.csv

and it would stop and not generate anything. I tried using Ouster Studio to view the PCAPs and they were fine I can even export 1 csv at a time

To Reproduce Some pcaps from the newest ouster studio

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

Samahu commented 6 days ago

Most likely the senosr id or ports stored example.pcap doesn't rightly match with example.json. You can try to see if adding the --soft-id-check to the source command helps.