Function ouster::sdk::sensor::get_config

Function Documentation

ouster::sdk::core::SensorConfig ouster::sdk::sensor::get_config(const std::string &hostname, bool active = true, int timeout_sec = LONG_HTTP_REQUEST_TIMEOUT_SECONDS)

Get sensor config from the sensor.

Parameters:
  • hostname[in] sensor hostname.

  • active[in] whether to pull active or passive configs.

  • timeout_sec[in] set the timeout for the request, this argument is optional.

Throws:

std::runtime_error – if failed to parse config

Returns:

retrieved sensor config