Skip to content

12650 per packet instead of 12608 #7

Description

@Crear12

3.4 Lidar Data Format
By default UDP data is forwarded to Port 7502. Lidar data packets consist of 16 azimuth blocks and are always 12608 Bytes in length. The packet rate is dependent on the output mode. Words are 32 bits in length and little endian.

However, I got confused that when I tried to unpack the packets from pacp files saved by Ouster Studio, every packet was 12650 instead of 12608.
with PcapReader(pcap_path) as pcap_reader:
for pkt in pcap_reader:
unpack(bytes(pkt))

struct.error: unpack requires a buffer of 12608 bytes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions