Skip to content

I record the pcap and json with lidar port 7504, IMU port 7505. How to read .pcap file? #668

@JinnanL

Description

@JinnanL

As title, I use the lidar port 7504, IMU port 7505, I can't read .pcap file.

But I use the default setting (lidar port 7502, IMU port 7503), I can read .pcap file.

Here is a simple example to read .pcap file..

from ouster.sdk.mapping import KissBackend
import ouster.sdk.pcap as pcap
import datetime
from more_itertools import time_limited
from ouster.sdk import client
from contextlib import closing

source_uri = "lidar.pcap"

source = open_source(source_uri)

kiss_icp = KissBackend([source.metadata])

def scans_w_poses():
for scan in source:
yield kiss_icp.update([scan])

viz = SimpleViz(
source.metadata,
accum_max_num=100,
accum_min_dist_num=0,
accum_min_dist_meters=0,
rate=0,
on_eof='stop'
)

viz.run(scans_w_poses())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions