Function ouster::sdk::core::parse_and_validate_config(const std::string&, SensorConfig&)
Defined in File metadata.h
Function Documentation
-
bool ouster::sdk::core::parse_and_validate_config(const std::string &config, SensorConfig &sensor_config)
Parse config text blob from the sensor into a SensorConfig struct.
All fields are optional, and will only be set if found.
- Throws:
runtime_error – if the text is not valid json.
- Parameters:
config – [in] a text blob given by get_config from client.h.
sensor_config – [out] The optional sensor config object, if parsing issues occur, will be empty.
- Returns:
If parsing was successful(no critical issues)