Configure a fake input controller for testing

Configuring a fake input controller allows you to test an input controller communicating with your robot, without any physical hardware.

This controller can have Controls defined in attributes, as seen in the “JSON Template” tab below. However, these Controls only ever return a single PositionChangeAbs event on the X axis, with the Event.value stuck at 0.7.

Configuration

Refer to the following example configuration for an input controller of model fake:

What an example configuration for a fake input controller component looks like in the Viam App config builder.
{
  "components": [
    {
      "name": <your-fake-input-controller>,
      "type": "input_controller",
      "model": "fake",
      "attributes": {
        controls: [
          "AbsoluteX",
          "AbsoluteY",
          "AbsoluteZ"
        ]
      }
    }
}

Troubleshooting

You can find additional assistance in the Troubleshooting section.

You can also ask questions in the Community Discord and we will be happy to help.