ouster.sdk.bag.bag_packet_source module¶
- class MessageCount[source]¶
Bases:
Structure- count¶
Structure/Union member
- id¶
Structure/Union member
- class BagPacketSource(bag_path, *, extrinsics_file=None, meta=None, soft_id_check=False, extrinsics=[])[source]¶
Bases:
PacketSourceRead a sensors packet streams out of a bag file as an iterator.
Read sensor data streams from a single bag file.
- Parameters:
bag_path (
Union[str,List[str]]) – path to bag file or folder containing ROS2 db3 and yaml filemeta (
Optional[List[str]]) – optional list of metadata files to load, if not provided metadata is loaded from the bag insteadsoft_id_check (
bool) – if True, don’t skip packets on init_id mismatchextrinsics_file (str | None)
extrinsics (List[ndarray])
- property sensor_info: List[SensorInfo]¶
Metadata associated with the packet.
- property is_live: bool¶
Check if the packet source is live.
- property is_indexed: bool¶
- property id_error_count: int¶
- property size_error_count: int¶
- restart()[source]¶
Restart playback, only relevant to non-live sources :rtype:
None- Return type:
None
- property closed: bool¶
Check if source is closed. Thread-safe.