Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iAmir97 opened this issue Jun 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@iAmir97
Copy link

iAmir97 commented Jun 28, 2024

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):

  • Ouster Sensor? [e.g. OS-0, OS-1, ..] OS-2-Rev7
  • Ouster Firmware Version? [e.g. 2.3, 2.4, ..] 2.5.2
  • Programming Language? [e.g. C++, Python, ..] CLI and Python 3.10
    • For Python include the targeted Python version
  • Operating System? [e.g. Linux, Windows, MacOS] Linux
  • Machine Architecture? [e.g. x64, arm] x64
  • git commit hash (if not the latest).
@iAmir97 iAmir97 added the bug Something isn't working label Jun 28, 2024
@Samahu
Copy link
Collaborator

Samahu commented Jul 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants