|
Viam C++ SDK current
|
#include "components/sensor.hpp"
Inheritance diagram for viam::sdk::Sensor:Public Member Functions | |
| API | api () const override |
Returns the API associated with a particular resource. | |
| virtual ProtoStruct | do_command (const ProtoStruct &command)=0 |
| Send/receive arbitrary commands to the resource. | |
| std::vector< GeometryConfig > | get_geometries () |
Returns GeometryConfigs associated with the calling sensor. | |
| virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 |
Returns GeometryConfigs 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. | |
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. | |
Protected Member Functions | |
| Sensor (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 |
Additional Inherited Members | |
Protected Attributes inherited from viam::sdk::Resource | |
| LogSource | logger_ |
This acts as an abstract base class to be inherited from by any drivers representing specific sensor implementations. This class cannot be used on its own.
|
overridevirtual |
Returns the API associated with a particular resource.
Implements viam::sdk::Resource.
|
pure virtual |
Send/receive arbitrary commands to the resource.
| Command | the command to execute. |
Implemented in viam::sdk::impl::SensorClient.
|
inline |
Returns GeometryConfigs associated with the calling sensor.
GeometryConfigs associated with the component.
|
pure virtual |
Returns GeometryConfigs associated with the calling sensor.
| extra | Any additional arguments to the method. |
GeometryConfigs associated with the component. Implemented in viam::sdk::impl::SensorClient, and viam::sdk::impl::SensorClient.
|
inline |
Returns the measurements/data specific to this sensor.
|
pure virtual |
Returns the measurements/data specific to this sensor.
| extra | Any additional arguments to the method. |
Implemented in viam::sdk::impl::SensorClient, and viam::sdk::impl::SensorClient.