# Add external axes

> Add an external axis, such as a linear unit, to your Isaac Sim scene and control it from Wandelbots NOVA. Learn how to model the axis and drive it through a bus signal or its own virtual controller.

Create and configure an external axis for your robot by building a static base and moving carriage, applying necessary APIs and joints, and mounting your robot on top.

Control the axis position in one of two ways:

- **Action Graph:** an `On Bus IO Change` node sets the axis position from a bus signal.
- **ArticulationRootAPI:** the axis is its own articulation and is driven by a dedicated virtual controller.

The video shows the result:

Video: [/video/omniservice/external\_axis/final\_result.webm](/video/omniservice/external_axis/final_result.webm)

### Step 1: Model the external axis in Isaac Sim

Build the external axis structure with a static base and moving carriage as shown in the stage tree below.

1. In the `World` prim, create the Xform `cell` with the child `external axis`.
2. Create the children Xforms `base` and `carriage`.
3. Create one `Cube` mesh for each child Xform. Scale and position as you like.
4. Add `Rigid Body with Colliders Preset` to `base` and `carriage`.
5. Create a `PrismaticJoint` that connects `base` and `carriage`.
6. Create a `FixedJoint` called `root_joint` with the Xform `base` as `Body 0`.
7. Import a robot into the scene and place it onto the carriage.
8. Start the simulation and test your setup at runtime.

![Stage tree of the external axis](/assets/nova/omniservice/external_axis/stage_tree_axis.webp)

Video: [/video/omniservice/external\_axis/create\_external\_axis.webm](/video/omniservice/external_axis/create_external_axis.webm)

### Step 2: Control the external axis

The Action Graph approach stays close to native Isaac Sim: Wandelbots NOVA writes a bus signal, and an action graph moves the axis.
The ArticulationRootAPI approach takes more setup, but Wandelbots NOVA then plans and moves the axis like a robot, through its own virtual controller.

**Action Graph**

A bus signal in Wandelbots NOVA holds the axis position. An action graph in Isaac Sim reads it and moves the carriage.

#### NOVA

1. Create a virtual controller for the robot.
2. Add a bus I/O service, for example a virtual PROFINET client in the Setup app, see [Connect IOs](/simulation/omnigraph-nodes/connect-ios#example-react-to-a-bus-input).
3. Add a bus signal for the axis position:
   - `IO ID`: a name such as `axis_position`
   - `Data type`: `REAL`
   - `Address`: `800`

![Bus signal for the axis position in Wandelbots NOVA](/assets/nova/omniservice/external_axis/profinet_signal.webp)

#### Isaac Sim

1. Create the action graph shown on the right.
2. The highlighted `Write Prim Attribute` node sets `drive:linear:physics:targetPosition` of the axis' `PrismaticJoint`.
3. The other `Write Prim Attribute` node sets the robot's `xformOp:translate` to the carriage position plus `0.55 m` in z. This is the height of the Yaskawa AR3120 base link in the example.
4. Set the `On Bus IO Change` node to the bus signal you created, such as `axis_position`.

![Action graph that moves the axis](/assets/nova/omniservice/external_axis/action_graph.webp)

**ArticulationRootAPI**

#### Make the axis an articulation

Wandelbots NOVA controls the axis and the robot through two virtual controllers.

1. Add `ArticulationRootAPI` to the external axis' Xform using `Add` → `Physics` → `Articulation Root`.
2. Apply the `IsaacRobotAPI` to the external axis' Xform using `Add` → `Edit API Schema`.
3. In the same window, apply `IsaacLinkAPI` to the `base` and `carriage` Xforms and `IsaacJointAPI` to the `PrismaticJoint`.
4. In the external axis Xform's `Property` window, assign the `PrismaticJoint` to the `isaac:physics:robotJoints` property and `base` and `carriage` to the `isaac:physics:robotLinks` property.
5. In the robot's `Property` window, specify `carriage` as `Body 0`.
6. Add the `Linear Drive` API to your `PrismaticJoint` and set the damping and stiffness as displayed.
7. In `Connect to NOVA`, connect the robot to its virtual controller.
8. Connect the external axis articulation to a virtual controller of an external axis model, for example the KUKA KL 1500-3 linear unit (`kuka-kl1500_3`).\
   Other axis models are the KUKA DKP 500-2 and DKP 750-2 positioners and the Yaskawa turntables.
9. Jog the external axis in Wandelbots NOVA.\
   → The carriage moves in Isaac Sim and carries the robot along.

![IsaacRobotAPI on the axis](/assets/nova/omniservice/external_axis/isaacrobotapi.webp)

![Applied API schemas](/assets/nova/omniservice/external_axis/api_schema.webp)

![Robot body linked to the carriage](/assets/nova/omniservice/external_axis/root_joint.webp)

![Linear drive settings](/assets/nova/omniservice/external_axis/linear_drive.webp)
