ouster.sdk.util.metadata module

Miscellaneous utilites.

resolve_metadata(data_path, meta_path=None)[source]

Look for a metadata file based on the data path if needed.

Convenient to use in CLI tools when –meta param can be omitted in lots of trivial cases when pcap filename has the same prefix as the metadata json filename.

Parameters:
  • data_path (str) – filename location with the data, usually .pcap or .bag that is used to search metadata with the most common prefix file

  • meta_path (Optional[str]) – the pass through metadata path, if set guessing and search for other metadata jsons is skipped

Return type:

Optional[str]

Returns:

metadata json paths guessed with the most common prefix match or passed through from meta_path parameter

resolve_metadata_multi(data_path)[source]

Look for a metadata files based on the pcap path with multi sensors.

Parameters:

data_path (str) – filename location with the data, usually .pcap or .bag

Return type:

List[str]

Returns:

list of metadata json paths guessed with the most common prefix match