ouster.sdk.open_source module

exception SourceURLException(sub_exception, url, packet=False)[source]

Bases: Exception

get_sub_exception()[source]
get_url()[source]
open_source(source_url, collate=True, sensor_idx=-1, *args, **kwargs)[source]

Open a frame set source from one or more URLs.

Parameters:
  • source_url (Union[str, List[str]]) – A single URL or a list of URLs. Each URL can be a path to a pcap or osf file, or a sensor hostname/IP address.

  • collate (bool) – If True, collate the source.

  • sensor_idx (int) – If >= 0, only output data from that specific sensor.

  • extrinsic_file – Path to an extrinsics file.

  • extrinsics – A single 4x4 numpy array or a list of 4x4 numpy arrays. When a single array is given and the frame set source has more than one sensor, the same extrinsics are applied to all sensors. Extra entries beyond the number of sensors are discarded.

  • index – Index the source before starting if the format does not natively support indexing. Does not apply to live sources.

Return type:

FrameSetSource

open_packet_source(source_url, *args, **kwargs)[source]

Open a packet source from one or more URLs.

Parameters:
  • source_url (Union[str, List[str]]) – A single URL or a list of URLs. Each URL can be a path to a pcap or osf file, or a sensor hostname/IP address.

  • extrinsics_file – Path to an extrinsics file.

  • extrinsics – A single 4x4 numpy array or a list of 4x4 numpy arrays. When a single array is given and the frame set source has more than one sensor, the same extrinsics are applied to all sensors. Extra entries beyond the number of sensors are discarded.

  • index – Index the source before starting if the format does not natively support indexing. Does not apply to live sources.

Return type:

PacketSource