Add sensor
add_sensorInstalls a new sensor on the rover body and applies type defaults for unspecified position, facing angle, range, and display name.
Instructions
Install a new sensor on the rover body. Unspecified fields use the type defaults (centre of the body, facing forward).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>"
},
"name": "add_sensor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Local x in px (forward +, rear −) | |
| y | No | Local y in px (right side +, left side −) | |
| name | No | Display name | |
| type | Yes | ||
| angle | No | Facing angle in degrees, 0 = forward, 90 = right side (wrapped to −180…180) | |
| range | No | Detection range in cm | |
| enabled | No |