Viam C++ SDK current
|
#include "components/sensor.hpp"
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 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. | |
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. | |
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 |
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 GeometryConfig
s associated with the calling sensor.
GeometryConfig
s associated with the component.
|
pure virtual |
Returns GeometryConfig
s associated with the calling sensor.
extra | Any additional arguments to the method. |
GeometryConfig
s 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.