| Viam C++ SDK current
    | 
gRPC client implementation of a Encoder component.  
 More...
#include <encoder_client.hpp>
 Inheritance diagram for viam::sdk::impl::EncoderClient:
 Inheritance diagram for viam::sdk::impl::EncoderClient:| Public Types | |
| using | interface_type = Encoder | 
|  Public Types inherited from viam::sdk::Encoder | |
| enum class | position_type : uint8_t { unspecified = 0 , ticks_count = 1 , angle_degrees = 2 } | 
| Public Member Functions | |
| EncoderClient (std::string name, std::shared_ptr< grpc::Channel > channel) | |
| position | get_position (const ProtoStruct &extra, position_type position_type) override | 
| Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder. | |
| void | reset_position (const ProtoStruct &extra) override | 
| Reset the value of the position. | |
| properties | get_properties (const ProtoStruct &extra) override | 
| Returns a list of all the position_types that are supported by the encoder. | |
| std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra) override | 
| Returns GeometryConfigs associated with the calling encoder. | |
| ProtoStruct | do_command (const ProtoStruct &command) override | 
| Send/receive arbitrary commands to the resource. | |
| std::vector< GeometryConfig > | get_geometries () | 
| Returns GeometryConfigs associated with the calling encoder. | |
| virtual std::vector< GeometryConfig > | get_geometries (const ProtoStruct &extra)=0 | 
| Returns GeometryConfigs associated with the calling encoder. | |
| position | get_position (position_type position_type=position_type::unspecified) | 
| Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder. | |
| virtual position | get_position (const ProtoStruct &extra, position_type position_type=position_type::unspecified)=0 | 
| Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder. | |
| properties | get_properties () | 
| Returns a list of all the position_types that are supported by the encoder. | |
| virtual properties | get_properties (const ProtoStruct &extra)=0 | 
| Returns a list of all the position_types that are supported by the encoder. | |
| void | reset_position () | 
| Reset the value of the position. | |
| virtual void | reset_position (const ProtoStruct &extra)=0 | 
| Reset the value of the position. | |
|  Public Member Functions inherited from viam::sdk::Encoder | |
| position | get_position (position_type position_type=position_type::unspecified) | 
| Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder. | |
| void | reset_position () | 
| Reset the value of the position. | |
| properties | get_properties () | 
| Returns a list of all the position_types that are supported by the encoder. | |
| std::vector< GeometryConfig > | get_geometries () | 
| Returns GeometryConfigs associated with the calling encoder. | |
| API | api () const override | 
| Returns the APIassociated with a particular resource. | |
|  Public Member Functions inherited from viam::sdk::Component | |
| Name | get_resource_name () const override | 
| Returns the Namefor 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::Encoder | |
| Encoder (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 Encoder component. 
| 
 | overridevirtual | 
Send/receive arbitrary commands to the resource.
| Command | the command to execute. | 
Implements viam::sdk::Encoder.
| 
 | inline | 
Returns GeometryConfigs associated with the calling encoder. 
GeometryConfigs associated with the component. | 
 | overridevirtual | 
Returns GeometryConfigs associated with the calling encoder. 
| extra | Any additional arguments to the method. | 
GeometryConfigs associated with the component. Implements viam::sdk::Encoder.
| 
 | virtual | 
Returns GeometryConfigs associated with the calling encoder. 
| extra | Any additional arguments to the method. | 
GeometryConfigs associated with the component. Implements viam::sdk::Encoder.
| 
 | overridevirtual | 
Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.
| extra | Any additional arguments to the method. | 
| position_type | The type of position you are requesting. If the driver does not implement the requested type, this call will return an error. If position type is unspecified, the response will return a default according to the driver. | 
Implements viam::sdk::Encoder.
| 
 | virtual | 
Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.
| extra | Any additional arguments to the method. | 
| position_type | The type of position you are requesting. If the driver does not implement the requested type, this call will return an error. If position type is unspecified, the response will return a default according to the driver. | 
Implements viam::sdk::Encoder.
| 
 | inline | 
Returns position of the encoder which can either be ticks since last zeroing for an incremental encoder or degrees for an absolute encoder.
| position_type | The type of position you are requesting. If the driver does not implement the requested type, this call will return an error. If position type is unspecified, the response will return a default according to the driver. | 
| 
 | overridevirtual | 
Returns a list of all the position_types that are supported by the encoder.
| extra | Any additional arguments to the method. | 
Implements viam::sdk::Encoder.
| 
 | virtual | 
Returns a list of all the position_types that are supported by the encoder.
| extra | Any additional arguments to the method. | 
Implements viam::sdk::Encoder.
| 
 | overridevirtual | 
Reset the value of the position.
| extra | Any additional arguments to the method. | 
Implements viam::sdk::Encoder.
| 
 | virtual | 
Reset the value of the position.
| extra | Any additional arguments to the method. | 
Implements viam::sdk::Encoder.