Spaces:
Running
Running
File size: 1,263 Bytes
4500b8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# Test Sequential Operations
This example tests the complete robotics workflow: findPort β releaseMotors β calibrate β teleoperate.
## Purpose
Validates the full API chain and tests all major functions working together in sequence.
## Files
- `test-sequential-operations.html` - HTML page with test controls
- `test-sequential-operations.ts` - TypeScript implementation of sequential testing
## Running
From the root directory:
```bash
pnpm example:sequential-test
```
Or from this directory:
```bash
pnpm dev
```
## Testing Workflow
1. Click "π Run Sequential Operations Test"
2. Workflow executes:
- **findPort()** - Discovers and connects to robot
- **releaseMotors()** - Releases motor torque for free movement
- **calibrate()** - Records motor ranges (auto-stops after 8 seconds)
- **teleoperate()** - Starts keyboard control with auto key simulation
## Expected Behavior
- Robot connection established
- Motors released for calibration setup
- Live calibration updates showing motor positions
- Automatic teleoperation with simulated key presses
- Auto-stop after test completion
## Browser Requirements
- Chrome/Edge 89+ with WebSerial and WebUSB APIs
- HTTPS or localhost
- Connected SO-100 robot arm for full testing
|