# OpenUSD types

> Look up the OpenUSD prim types, APIs, and attributes that the Wandelbots NOVA extension reads and writes. Learn how a scene stores robots, tools, TCPs, poses, and ghost objects.

The Wandelbots USD extension (`wandelbots.usd`) adds prim types and APIs that connect prims in a scene to Wandelbots NOVA.
The Wandelbots NOVA extension installs it as a dependency.

If you install the extensions manually, activate `Wandelbots USD` and enable `Autoload`.
Restart NVIDIA Isaac Sim after the installation.

![Screenshot of the Wandelbots USD extension in the NVIDIA Isaac Sim extension manager](/assets/nova/omniservice/openusd/wandelbots_usd_extension.webp)

| Type | Applied to | Represents |
| - | - | - |
| [Motion group API](#motion-group-api) | Articulation root of a robot | A motion group in Wandelbots NOVA |
| [Tool API](#tool-api) | Root prim of a tool | A tool attached to the flange of a robot |
| [TCP prim](#tcp-prim) | Typed prim below a tool or robot | A tool center point (TCP) |
| [Pose](#pose) | `Xform` with a marker in its custom data | A target pose |
| [Ghost object API](#ghost-object-api) | Mesh created from a tool and a TCP | A target pose shown as a copy of the tool |

## Motion group API

`MotionGroupAPI` connects an articulation root to a motion group in Wandelbots NOVA.
Robots from the Wandelbots NOVA asset library carry it already.

`Connect to NOVA` writes the attributes when you connect a robot.
You can also edit them in the `Property` panel under `Wandelbots NOVA` → `Motion Group`.

To add the API by hand, select the articulation root and click `+Add` → `Wandelbots NOVA` → `Motion Group` in the `Property` panel.
The entry is available only on prims with an articulation root and without a tool or ghost object API.

![Screenshot of the Motion Group properties in the Isaac Sim Property panel](/assets/nova/omniservice/openusd/motion_group_api_properties.webp)

All attributes use the namespace `wandelbots:nova:motionGroup:`.

| Attribute | Type | Default | Description |
| - | - | - | - |
| `enabled` | bool | `true` | Connect the motion group when the simulation starts. `Include in simulation` sets this value. |
| `cell` | string | `""` | Cell of the motion group. |
| `controller` | string | `""` | Controller identifier. |
| `motionGroup` | string | `""` | Motion group identifier, for example `0@ur10e`. |
| `host` | string | `""` | Host of the Wandelbots NOVA instance, for example `abc.instance.wandelbots.io` or `127.0.0.1`. |
| `secure` | bool | `false` | Connect to the instance over HTTPS and WSS. |
| `responseRate` | uint | `32` | Interval of the motion group state stream in milliseconds. |
| `externalJointStream` | bool | `false` | Send the joint state of the simulation to the virtual controller. `Sync with simulation` sets this value. |

> **Info:** Some assets combine several motion groups in one articulation whose root lies outside the motion group prim.
> Add the relationship `wandelbots:nova:motionGroup:articulationRoot` to the motion group prim and target the articulation root.

## Tool API

`ToolAPI` marks a tool on the flange of a robot.

Select the root prim of the tool and click `+Add` → `Wandelbots NOVA` → `Tool` in the `Property` panel.

The extension then sets `linkBody`:

- With one rigid body in the tool, it selects this rigid body.
- With several rigid bodies, a dialog asks which one connects to the robot.
- Without a rigid body, set `linkBody` by hand.

![Screenshot of the Tool properties in the Isaac Sim Property panel](/assets/nova/omniservice/openusd/tool_api_properties.webp)

| Relationship | Target |
| - | - |
| `wandelbots:nova:tool:linkBody` | Rigid body of the tool that a physics joint connects to the robot. |

The extension finds the robot of a tool through the enabled physics joints from `linkBody` to a prim with `MotionGroupAPI`.
It does not use the prim hierarchy or prim names for this.
A tool can also sit below the flange as geometry only. In that case, set `linkBody` to the flange link of the robot, for example `link_6`.

## TCP prim

A TCP prim is an `Xformable` prim that marks a tool center point.

The extension treats a prim as a TCP in either of these cases:

- The prim type is `ToolCenterPoint`.
- The prim name starts with `tcp_`, in any letter case.

![Screenshot of the Stage panel with a prim of type ToolCenterPoint](/assets/nova/omniservice/openusd/tcp_prim.webp)

- A TCP of a tool has to lie below the prim with `ToolAPI`.
- The flange TCP of a robot lies below the motion group prim. A prim named `tcp_flange` takes priority.
- In Wandelbots NOVA, the TCP name drops the `tcp_` prefix. `tcp_gripper` becomes `gripper`.

Create TCPs from the context menu `Create` → `Wandelbots NOVA`:

- `TCP` adds a `ToolCenterPoint` below the selected prim.
- `TCP from NOVA` adds a TCP that Wandelbots NOVA defines for the robot. The entry appears below a tool only.
- `TCP in NOVA` creates the selected TCP in Wandelbots NOVA. See [Build a scene from Wandelbots NOVA](/simulation/build-scene/scene-from-nova).

## Pose

A pose is an `Xform` that shows a coordinate frame gizmo.
Create it with `Create` → `Wandelbots NOVA` → `Pose`, or convert an existing prim with `Convert to Pose`.

| Data | Kind | Content |
| - | - | - |
| `wandelbots` → `type` | Custom data | `POSE`. Marks the prim as a pose. |
| `wandelbots` → `tcp_name` | Custom data | TCP that the `Trajectory Planner` uses for this pose. |
| `preferredJointValues` | `float[]` | Joint values of the selected inverse kinematics solution, as Wandelbots NOVA returns them. |
| `preferredKinematicConfiguration` | string | Kinematic configuration of the selected solution as JSON. |

The `Trajectory Planner` and the joint configuration selector of `Ghost Teaching` write `preferredJointValues` and `preferredKinematicConfiguration`.
They select the same robot posture again the next time you open the pose.
Moving the pose in the `Trajectory Planner` removes both attributes.

## Ghost object API

`GhostObjectAPI` marks a ghost object: a copy of a tool that shows the target pose of its TCP.

Create a ghost object with `Create` → `Wandelbots NOVA` → `Ghost Object` on a prim with `ToolAPI`.
If the tool has several TCPs, a dialog asks for the TCP.

You cannot add the API in the `Property` panel.

Video: [/video/omniservice/openusd/create\_ghost\_object.webm](/video/omniservice/openusd/create_ghost_object.webm)

| Relationship | Target |
| - | - |
| `wandelbots:nova:ghostObject:sourceTcp` | TCP of the tool that the ghost object shows. |

- The ghost object is a `Mesh` with the merged geometry of the tool. Its origin is the TCP.
- The default path is `<tool parent>/poses/<tool name>_Pose`.
- The mesh appears as a convex hull first and gets its detailed shape in the background.
- Ghost objects carry `preferredJointValues` and `preferredKinematicConfiguration` like [poses](#pose).

The extension API lists ghost objects at [`GET /omniservice/api/v2/teaching/ghost-objects`](https://docs.wandelbots.com/simulation/extension-api#list-ghost-objects).
See [Extension API](/simulation/extension-api).
