gRPC client implementation of a Sensor
component.
More...
#include <sensor_client.hpp>
|
| SensorClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
|
ProtoStruct | get_readings (const ProtoStruct &extra) override |
| Returns the measurements/data specific to this sensor.
|
|
ProtoStruct | do_command (const ProtoStruct &command) override |
| Send/receive arbitrary commands to the resource.
|
|
std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra) override |
| Returns GeometryConfig s associated with the calling sensor.
|
|
std::vector< GeometryConfig > | get_geometries () |
| Returns GeometryConfig s associated with the calling sensor.
|
|
virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
| Returns GeometryConfig s associated with the calling sensor.
|
|
ProtoStruct | get_readings () |
| Returns the measurements/data specific to this sensor.
|
|
virtual ProtoStruct | get_readings (const ProtoStruct &extra)=0 |
| Returns the measurements/data specific to this sensor.
|
|
API | api () const override |
| Returns the API associated with a particular resource.
|
|
std::vector< GeometryConfig > | get_geometries () |
| Returns GeometryConfig s associated with the calling sensor.
|
|
ProtoStruct | get_readings () |
| Returns the measurements/data specific to this sensor.
|
|
Name | get_resource_name () const override |
| Returns the Name for a particular resource.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
void | set_log_level (log_level) const |
| Set the log level for log messages originating from this Resource.
|
|
|
| Sensor (std::string name) |
|
| Component (std::string name) |
|
Name | get_resource_name (const std::string &type) const |
|
LogSource | logger_ |
|
gRPC client implementation of a Sensor
component.
◆ do_command()
ProtoStruct viam::sdk::impl::SensorClient::do_command |
( |
const ProtoStruct & | command | ) |
|
|
overridevirtual |
Send/receive arbitrary commands to the resource.
- Parameters
-
Command | the command to execute. |
- Returns
- The result of the executed command.
Implements viam::sdk::Sensor.
◆ get_geometries() [1/3]
◆ get_geometries() [2/3]
std::vector< GeometryConfig > viam::sdk::impl::SensorClient::get_geometries |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
◆ get_geometries() [3/3]
virtual std::vector< GeometryConfig > viam::sdk::Sensor::get_geometries |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
◆ get_readings() [1/3]
ProtoStruct viam::sdk::Sensor::get_readings |
( |
| ) |
|
|
inline |
Returns the measurements/data specific to this sensor.
- Returns
- The requested measurements/data specific to this sensor.
◆ get_readings() [2/3]
ProtoStruct viam::sdk::impl::SensorClient::get_readings |
( |
const ProtoStruct & | extra | ) |
|
|
overridevirtual |
Returns the measurements/data specific to this sensor.
- Parameters
-
extra | Any additional arguments to the method. |
- Returns
- The requested measurements/data specific to this sensor.
Implements viam::sdk::Sensor.
◆ get_readings() [3/3]
virtual ProtoStruct viam::sdk::Sensor::get_readings |
( |
const ProtoStruct & | extra | ) |
|
|
virtual |
Returns the measurements/data specific to this sensor.
- Parameters
-
extra | Any additional arguments to the method. |
- Returns
- The requested measurements/data specific to this sensor.
Implements viam::sdk::Sensor.
The documentation for this class was generated from the following file: