Encoder Component
This section documents the configuration attributes for each built-in encoder model. Use these pages when you are writing a JSON configuration, debugging a config validation error, or looking up the default for a specific attribute.
- For how to add and configure a encoder component on your machine, see Encoder.
- For the methods you call on a encoder in code, see the Encoder API reference.
- For encoder models outside the built-in set, browse the Viam registry. Each registry module’s configuration is documented in its own README on its registry page.
Built-in models
The following encoder models ship with viam-server:
| Model | Description |
|---|---|
fake | An encoder model for testing. |
incremental | Supports a two phase encoder, which can measure the speed and direction of rotation in relation to a given reference point. |
single | A single pin ‘pulse output’ encoder which returns its relative position but no direction. |
Micro-RDK models
The following encoder models ship with the Micro-RDK:
| Model | Description |
|---|---|
incremental | — |
single | — |
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!