Next
two_wheeled_base
Configure a fake
base to test implementing a base component on your machine without any physical hardware:
Navigate to the CONFIGURE tab of your machine’s page in the Viam app.
Click the + icon next to your machine part in the left-hand menu and select Component.
Select the base
type, then select the fake
model.
Enter a name or use the suggested name for your base and click Create.
{
"name": "<your-base-name>",
"type": "base",
"model": "fake",
"namespace": "rdk",
"attributes": {}
}
No attributes are available for fake
bases.
See GitHub for API call return specifications.
After you configure the base, open the base’s TEST panel on the CONFIGURE or CONTROL tabs to view the controls to enable keyboard or discrete control over your machine’s movement.
In the Quick move section, you can toggle the keyboard control to active. With the Keyboard toggle active, use W and S to go forward and back, and A and D to arc and spin.
Try driving your base around using the WASD keyboard controls.
Ensure that your robot has sufficient space to drive around without hitting anyone or anything.
You can also move straight, spin, set power or set velocity from the base panel.
If you do not see the base card in the TEST panel, check the LOGS tab for possible setup or configuration errors.
dir_flip
attribute in its config, or try swapping the wires running to the motor to change its direction.If none of these steps work, reach out to us on the Community Discord and we will be happy to help.
For more configuration and usage info, see:
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!