Function ouster::sensor::parse_config

Function Documentation

sensor_config ouster::sensor::parse_config(const std::string &config)

Parse config text blob from the sensor into a sensor_config struct

All fields are optional, and will only be set if found.

Throws:

runtime_error – if the text is not valid json

Parameters:

metadata – a text blob given by get_config from client.h

Returns:

a sensor_config struct populated with the sensor config parameters