Function ouster::sdk::osf::osf_file_modify_metadata(const std::string&, const std::vector<std::shared_ptr<ouster::sdk::core::SensorInfo>>&)¶
Defined in File operations.h
Function Documentation¶
-
int64_t ouster::sdk::osf::osf_file_modify_metadata(const std::string &file_name, const std::vector<std::shared_ptr<ouster::sdk::core::SensorInfo>> &new_metadata)¶
Modify an OSF files sensor metadata.
Replaces every sensor metadata entry in the footer with
new_metadata, dispatching each entry on its concrete type: a ouster::sdk::core::LidarInfo is written as a LidarSensor entry and a ouster::sdk::core::CameraInfo as a CameraSensor entry. The new entries reuse the footer ids of the entries they replace, in order, so frame streams and Extrinsics that reference a sensor by id keep resolving.- Throws:
std::invalid_argument – if an entry is neither a LidarInfo nor a CameraInfo.
- 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.