Class Sensor

Class Documentation

class Sensor

Class that indicates a sensor and its desired configuration.

Public Functions

Sensor(const std::string &hostname, const ouster::sdk::core::SensorConfig &config)

Construct a sensor descriptor with the given hostname and desired config.

Parameters:
  • hostname[in] sensor hostname

  • config[in] desired sensor configuration

ouster::sdk::core::SensorInfo fetch_metadata(int timeout = 10) const

Queries the sensor metadata.

Parameters:

timeout[in] timeout for the request in seconds

Returns:

the parsed SensorInfo object containing the metadata.

std::shared_ptr<ouster::sdk::sensor::SensorHttp> http_client() const

Get a SensorHttp client for this sensor.

Returns:

the SensorHttp client

inline const ouster::sdk::core::SensorConfig &desired_config() const

Get the desired config of this sensor.

Returns:

the desired config

inline const std::string &hostname() const

Get the hostname of this sensor.

Returns:

the sensor hostname