motion-tools aims to provide a visualization interface for any spatial information using Viam's APIs. This typically means motion-related monitoring, testing, and debugging.
Getting started
- Install pnpm
- Install bun
- Install dependencies:
pnpm i
- Run local app server:
pnpm dev
Running the visualizer
To visit the visualizer, go to http://localhost:5173/
Open the machine config page (bottom right) and enter in connection details to visualize a specific machine. You can also add machine configs from an env file (see below).
Env files for machine configs
To add a list of connection configs in an .env.local file, use the following format:
VITE_CONFIGS='
{
"fleet-rover-01": {
"host": "fleet-rover-01-main.ve4ba7w5qr.viam.cloud",
"partId": "myPartID",
"apiKeyId": "myApiKeyId",
"apiKeyValue": "MyApiKeyValue",
"signalingAddress": "https://app.viam.com:443"
}
}
'
Executing drawing commands
The visualizer includes a golang package that allows executing commands to the visualizer.
The list of available commands can be found here.