Module ouster.sdk.open_source
- open_source(source_url, collate=True, sensor_idx=-1, *args, **kwargs)[source]
- Parameters:
source_url (-) – could be a single url or many for the case of sensors. the url can contain the path to a pcap file or an osf file. alternatively, the argument could contain a list of sensor hostnames or ips
extrinsic_file (-) – a path to an extrinsics file
extrinsics (-) – single 4x4 numpy array or a list of 4x4 numpy arrays. In case a single 4x4 numpy array was given while the scan_source had more than sensor then the same extrinsics is copied and applied to all the sensors. If the list of provided extrinsics exceeds the number of available sensors in the scan source then the extra will be discarded.
collate (-) – if true collate the source
sensor_idx (-) – if >= 0 only output data from that specific sensor
- Return type:
- Other Common Parameters
- index: index the source before start if the format doesn’t natively have
an index. doens’t apply to live sources.
- open_packet_source(source_url, *args, **kwargs)[source]
- Parameters:
source_url (-) – could be a single url or many for the case of sensors. the url can contain the path to a pcap file or an osf file. alternatively, the argument could contain a list of sensor hostnames or ips
extrinsics_file (-) – a path to an extrinsics file
extrinsics (-) – single 4x4 numpy array or a list of 4x4 numpy arrays. In case a single 4x4 numpy array was given while the scan_source had more than sensor then the same extrinsics is copied and applied to all the sensors. If the list of provided extrinsics exceeds the number of available sensors in the scan source then the extra will be discarded.
- Return type:
- Other Common Parameters
- index: index the source before start if the format doesn’t natively have
an index. doens’t apply to live sources.