Add obstacle
add_obstaclePlace a cylinder, ball, box, or wall in the simulated world to test sensors, collisions, and camera behavior; placement is refused if it overlaps the rover.
Instructions
Place an object in the world to test sensors, collisions or the camera. Kinds: cylinder / ball (circle, radius r), box / wall (rectangle w × h, rotated by angle°). Unspecified size and color use the kind's defaults. Refused if it would overlap the rover.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | Height (depth) for box / wall | |
| r | No | Radius for cylinder / ball | |
| w | No | Width for box / wall | |
| x | Yes | World x (px) | |
| y | Yes | World y (px) | |
| kind | Yes | ||
| angle | No | Rotation in degrees for box / wall | |
| color | No |