Drive
driveMoves a simulated rover forward/backward or turns it left/right in place for a set duration, then returns the resulting observation; collisions stop movement.
Instructions
Move the rover for a fixed time: forward / backward, or turn left / right in place. Turns autopilot off and starts the simulation. Rotation speed is about 2 rad/s (≈115°/s), so turning 90° takes ≈0.8 s. Forward speed is 65 % of max speed (≈61 px/s at the default 55 % power; backward ≈51 px/s). With wait=true (default) it returns the observation after the move finishes. The rover stops on collisions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the move to finish before returning (default true) | |
| seconds | No | Duration, 0.2–10 s (default 2 for forward/backward, 1 for turns) | |
| direction | Yes |