ouster.sdk.core.core module
Copyright (c) 2021, Ouster, Inc. All rights reserved.
This module contains wrappers for packet sources, frame borders, and pose validation. Defines how to read packets, manage frames, and check pose validity.
- class Packets(it, metadata)[source]
Bases:
PacketSourceCreate a
PacketSourcefrom an existing iterator.- Parameters:
it (
Iterable[Union[LidarPacket,ImuPacket,ZonePacket]]) – A stream of packetsmetadata (
SensorInfo) – Metadata for the packet stream
- property sensor_info: List[SensorInfo]
Retrieve sensor information for all sensors in the packet source.
- Returns:
A list of SensorInfo objects, each containing metadata about a sensor, such as serial number, firmware version, and calibration details.
- property is_live: bool
Check if the packet source is live.
- class FrameBorder(meta, pred=<function FrameBorder.<lambda>>)[source]
Bases:
objectCreate callable helper that indicates the cross frames packets.
- first_valid_column_pose(scan)[source]
Return first valid column pose of a LidarScan
- Return type:
ndarray
- last_valid_column_pose(scan)[source]
Return last valid column pose of a LidarScan
- Return type:
ndarray