operations.h

std::string ouster::osf::dump_metadata(const std::string &file, bool full = true)

Outputs OSF v2 metadata + header info in JSON format.

Parameters:
  • file[in] OSF file (only v2 supported)

  • full[in] flag print full information (i.e. chunks_offset and decoded metas)

Returns:

JSON formatted string of the OSF metadata + header

void ouster::osf::parse_and_print(const std::string &file, bool with_decoding = false)

Reads OSF file and prints (STDOUT) messages types, timestamps and overall statistics per message type.

Parameters:
  • file[in] OSF file

  • with_decoding[in] decode known messages (used to time a reading + decoding together)

int64_t ouster::osf::backup_osf_file_metablob(const std::string &osf_file_name, const std::string &backup_file_name)

Backup the metadata blob in an OSF file.

Parameters:
  • osf_file_name[in] The OSF file to backup from.

  • backup_file_name[in] The path to store the metadata blob backup.

Returns:

The number of the bytes written to the backup file.

int64_t ouster::osf::restore_osf_file_metablob(const std::string &osf_file_name, const std::string &backup_file_name)

Restore an OSF metadata blob from a backup file.

Parameters:
  • osf_file_name[in] The OSF file to restore to.

  • backup_file_name[in] The path to the metadata blob backup.

Returns:

The number of the bytes written to the OSF file.

int64_t ouster::osf::osf_file_modify_metadata(const std::string &file_name, const std::vector<ouster::sensor::sensor_info> &new_metadata)

Modify an OSF files sensor_info metadata.

Parameters:
  • file_name[in] The OSF file to modify.

  • new_metadata[in] The new metadata for the OSF file

Returns:

The number of the bytes written to the OSF file.

Warning

doxygenfunction: Cannot find function “ouster::osf::pcap_to_osf” in doxygen xml output for project “cpp_api” from directory: /sdk-extensions/ouster-sdk/docs/_build/latest/doctrees/xml