Function ouster::sensor::metadata_from_json

Function Documentation

sensor_info ouster::sensor::metadata_from_json(const std::string &json_file)

Parse metadata given path to a json file.

Throws:

runtime_error – if json file does not exist or is malformed

Parameters:

json_file – path to a json file containing sensor metadata

Returns:

a sensor_info struct populated with a subset of the metadata