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:

ModelDescription
fakeAn encoder model for testing.
incrementalSupports a two phase encoder, which can measure the speed and direction of rotation in relation to a given reference point.
singleA 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:

ModelDescription
incremental
single