|
| EncoderClient (std::string name, std::shared_ptr< grpc::Channel > channel) |
|
position | get_position (const AttributeMap &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 AttributeMap &extra) override |
| Reset the value of the position.
|
|
properties | get_properties (const AttributeMap &extra) override |
| Returns a list of all the position_types that are supported by the encoder.
|
|
std::vector< GeometryConfig > | get_geometries (const AttributeMap &extra) override |
| Returns GeometryConfig s associated with the calling encoder.
|
|
AttributeMap | do_command (const AttributeMap &command) override |
| Send/receive arbitrary commands to the resource.
|
|
std::vector< GeometryConfig > | get_geometries () |
| Returns GeometryConfig s associated with the calling encoder.
|
|
virtual std::vector< GeometryConfig > | get_geometries (const AttributeMap &extra)=0 |
| Returns GeometryConfig s 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 AttributeMap &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 AttributeMap &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 AttributeMap &extra)=0 |
| Reset the value of the position.
|
|
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 GeometryConfig s associated with the calling encoder.
|
|
API | api () const override |
| Returns the API associated with a particular resource.
|
|
viam::common::v1::ResourceName | get_resource_name (std::string name) const override |
| Returns a ResourceName for a particular resource name.
|
|
| Resource (std::string name) |
|
virtual std::string | name () const |
| Return the resource's name.
|
|
|
static position_type | from_proto (viam::component::encoder::v1::PositionType proto) |
| Creates a position_type struct from its proto representation.
|
|
static position | from_proto (const viam::component::encoder::v1::GetPositionResponse &proto) |
| Creates a position struct from its proto representation.
|
|
static properties | from_proto (const viam::component::encoder::v1::GetPropertiesResponse &proto) |
| Creates a properties struct from its proto representation.
|
|
static viam::component::encoder::v1::PositionType | to_proto (position_type position_type) |
| Converts a position_type struct to its proto representation.
|
|
static viam::component::encoder::v1::GetPositionResponse | to_proto (const position &position) |
| Converts a position struct to its proto representation.
|
|
static viam::component::encoder::v1::GetPropertiesResponse | to_proto (const properties &properties) |
| Converts a properties struct to its proto representation.
|
|
| Encoder (std::string name) |
|
| Component (std::string name) |
|
gRPC client implementation of a Encoder
component.