two_wheeled_base

A two_wheeled_base base supports mobile robotic bases with drive motors on both sides (differential steering). Only bases with two drive wheels are supported by this viam-micro-server model.

If you want to test your base as you configure it, physically assemble the base, connect it to your machine’s computer, and turn it on.

{
  "components": [
    {
      "name": "<your-base-name>",
      "model": "two_wheeled_base",
      "api": "rdk:component:base",
      "attributes": {
        "left": "<your-left-motor-name>",
        "right": "<your-right-motor-name>"
      }
    }
  ]
}
{
  "components": [
    {
      "name": "my-wheeled-base",
      "model": "two_wheeled_base",
      "api": "rdk:component:base",
      "attributes": {
        "left": "leftm",
        "right": "rightm"
      },
      "depends_on": []
    }, ... <INSERT LEFT AND RIGHT MOTOR CONFIGS>
  ]
}

The following attributes are available for two_wheeled_base bases:

NameTypeRequired?Description
leftstringRequiredThe name of a drive motor on the left side of the base.
rightstringRequiredThe name of a drive motor on the right side of the base.