Approach an object
approach_objectDrive the VEX AIM robot toward a visible object, re-aiming each step until it reaches the kicker; specify a target kind, label, or taught color. If unseen, scan first; check photo before kicking.
Instructions
Drive up to an object the onboard AI can see, re-aiming before every short step, until it's in the kicker (whose magnet then holds balls and barrels). Give a target kind or the label of an object or taught colour. If it isn't in view, use face_object or scan_surroundings first. The onboard AI often loses a ball in the last ~10 cm, so the robot finishes that part on an estimate. Unless the AI confirms the object is in the kicker, the result includes a photo: check it before kicking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Instead of target: the label of an object the person named in the control panel (e.g. 'left post'), or a taught colour (e.g. 'red cup') | |
| target | No | any | |
| speed_percent | No | ||
| max_distance_mm | No | Give up after driving this far in total (also limited by the server's move cap) |