Function ouster::sdk::sensor::get_config

Function Documentation

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

Get sensor config from the sensor.

Populates passed in config with the results of get_config.

Parameters:
  • hostname[in] – sensor hostname.

  • config[out] – sensor config to populate.

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

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

Returns:

true if sensor config successfully populated.