|
Viam C++ SDK current
|
gRPC client implementation of a PowerSensor component.
More...
#include <power_sensor_client.hpp>
Inheritance diagram for viam::sdk::impl::PowerSensorClient:Public Types | |
| using | interface_type = PowerSensor |
Public Member Functions | |
| PowerSensorClient (std::string name, std::shared_ptr< grpc::Channel > channel) | |
| voltage | get_voltage (const ProtoStruct &extra) override |
| Returns the voltage reading of this sensor. | |
| current | get_current (const ProtoStruct &extra) override |
| Returns the current reading of this sensor. | |
| double | get_power (const ProtoStruct &extra) override |
| Returns the power reading of this sensor. | |
| 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. | |
| current | get_current () |
| Returns the current reading of this sensor. | |
| virtual current | get_current (const ProtoStruct &extra)=0 |
| Returns the current reading of this sensor. | |
| double | get_power () |
| Returns the power reading of this sensor. | |
| virtual double | get_power (const ProtoStruct &extra)=0 |
| Returns the power reading of this 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. | |
| voltage | get_voltage () |
| Returns the voltage reading of this sensor. | |
| virtual voltage | get_voltage (const ProtoStruct &extra)=0 |
| Returns the voltage reading of this sensor. | |
Public Member Functions inherited from viam::sdk::PowerSensor | |
| API | api () const override |
Returns the API associated with a particular resource. | |
| voltage | get_voltage () |
| Returns the voltage reading of this sensor. | |
| current | get_current () |
| Returns the current reading of this sensor. | |
| double | get_power () |
| Returns the power reading of this sensor. | |
| ProtoStruct | get_readings () |
| Returns the measurements/data specific to this sensor. | |
Public Member Functions inherited from viam::sdk::Component | |
| Name | get_resource_name () const override |
Returns the Name for a particular resource. | |
Public Member Functions inherited from viam::sdk::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. | |
Additional Inherited Members | |
Protected Member Functions inherited from viam::sdk::PowerSensor | |
| PowerSensor (std::string name) | |
Protected Member Functions inherited from viam::sdk::Component | |
| Component (std::string name) | |
Protected Member Functions inherited from viam::sdk::Resource | |
| Name | get_resource_name (const std::string &type) const |
Protected Attributes inherited from viam::sdk::Resource | |
| LogSource | logger_ |
gRPC client implementation of a PowerSensor component.
|
overridevirtual |
Send/receive arbitrary commands to the resource.
| Command | the command to execute. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the current reading of this sensor.
|
overridevirtual |
Returns the current reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the current reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the power reading of this sensor.
|
overridevirtual |
Returns the power reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the power reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the measurements/data specific to this sensor.
|
overridevirtual |
Returns the measurements/data specific to this sensor.
| extra | Any additional arguments to the method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the measurements/data specific to this sensor.
| extra | Any additional arguments to the method. |
Implements viam::sdk::PowerSensor.
|
inline |
Returns the voltage reading of this sensor.
|
overridevirtual |
Returns the voltage reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.
|
virtual |
Returns the voltage reading of this sensor.
| extra | Any additional arguments to this method. |
Implements viam::sdk::PowerSensor.