create_object
Create primitive objects like cubes and spheres in Isaac Sim with specified position, rotation, scale, color, and physics. Returns the prim path and bounding box for accurate scene placement.
Instructions
Create a primitive object (Cube, Sphere, Cylinder, Cone, Capsule, Plane).
The scale parameter multiplies the primitive's default size. For example, a Cube has default size 2.0, so scale=[0.5, 0.5, 0.5] creates a 1.0m cube.
Returns prim_path, actual_size [x, y, z] in meters, and bounding_box (min/max corners in world coordinates) so you can accurately place other objects relative to this one (e.g. placing a cube on top of a table).
Args: object_type: Type of primitive — Cube, Sphere, Cylinder, Cone, Capsule, or Plane. position: [x, y, z] world position. rotation: [rx, ry, rz] rotation in degrees. scale: [sx, sy, sz] scale factors. color: [r, g, b] color values (0-1). physics_enabled: Enable physics on this object. prim_path: Custom prim path. Auto-generated if not provided.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_type | No | Cube | |
| position | No | ||
| rotation | No | ||
| scale | No | ||
| color | No | ||
| physics_enabled | No | ||
| prim_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |