# Motion Group Inspector

> Inspect a robot connected to Wandelbots NOVA in NVIDIA Isaac Sim. Learn how to show its safety zones and joint limits on the robot, read where the robot stands in them, and change the colors.

The `Motion Group Inspector` shows a robot that is connected to Wandelbots NOVA together with what NOVA knows about it.
It draws the safety zones of the robot controller and the limits of each joint on the robot, and it shows where the robot stands in them.

> **Info:** The `Motion Group Inspector` needs a version of the Isaac Sim extension that has it under `Tools`.
> A controller only reports safety zones if it supports them. Most virtual controllers start without zones.

Video: [/video/omniservice/motion\_group\_inspector/motion-group-inspector-walkthrough.webm](/video/omniservice/motion_group_inspector/motion-group-inspector-walkthrough.webm)

In the video, a program that runs in the background moves the robot through Wandelbots NOVA. The mouse circles around the places to watch when the robot enters a zone and when a joint comes close to its limit.
The `Motion Group Inspector` does not move the robot. It shows where the robot is and what that means for its zones and joints.

## Prerequisites

[Connect a robot](/simulation/installation#connect-isaac-sim-with-wandelbots-nova) of the scene to its controller in Wandelbots NOVA.

## Open the Motion Group Inspector

### Step 1: From Connect to NOVA

1. Open `Wandelbots NOVA` → `Connect to NOVA`.
2. Expand the instance and the row of the robot.\
   → The row shows `Safety zones` with a button that opens the inspector. Its tooltip names how many zones the controller reports. The row appears only if the controller reports zones.
3. Click the button next to `Safety zones`.\
   → The `Motion Group Inspector` opens with this robot selected.

### Step 2: From the Tools menu

1. Open `Tools` → `Wandelbots NOVA` → `Motion Group Inspector`.
2. Select the robot in `Prim`.\
   → The inspector lists only robots that are connected to Wandelbots NOVA.

![Screenshot of a connected robot row in Connect to NOVA with the button next to Safety zones and its tooltip](/assets/nova/omniservice/motion_group_inspector/connect-row.webp)

The inspector opens with only the `Safety Zones` section expanded. Click the title of `Motion Group`, `Joint Limits` or `Legend` to expand it.

The `Motion Group` section of the inspector shows where the robot is connected: `Instance`, `Cell`, `Controller` and `Motion group`.

![Screenshot of the Motion Group Inspector with the sections Motion Group, Safety Zones and Joint Limits](/assets/nova/omniservice/motion_group_inspector/inspector.webp)

## Safety zones

A robot controller enforces safety zones: volumes the robot must stay out of, or must stay inside.
In the `Safety Zones` section, switch on `Show safety zones`.
→ The zones appear around the robot. Switch it off to hide them again.

![Screenshot of the viewport with a KUKA robot inside a blue keep-in zone and two yellow monitoring zones](/assets/nova/omniservice/motion_group_inspector/zones-viewport.webp)

The colors tell the kinds of zones apart. They are the ISO 3864 safety colors:

- Red: a keep-out zone. The robot must not enter it.
- Blue: a keep-in zone. The robot must not leave it, for example the boundary of the cell.
- Yellow: a monitoring zone. The controller only reports it and does not stop the robot.

Zones can be boxes, prisms, spheres, capsules and lozenges. Each one is drawn in its own shape.

![Screenshot of a Yaskawa robot surrounded by red keep-out zones shaped as prisms, a box, a sphere and a capsule](/assets/nova/omniservice/motion_group_inspector/zones-shapes.webp)

Wandelbots NOVA only reports whether a zone keeps the robot out or in for virtual controllers.
For a physical controller, a zone made only of boundary faces counts as keep-in, and every other zone as keep-out.
Monitoring zones are only listed for virtual controllers.

### Choose how the zones are drawn

A zone is drawn as a transparent block by default. You can draw its edges instead, or together with the block.
In the `Safety Zones` section, open `Display` and choose a mode.
→ Every zone that is drawn changes at once, also the zones you show from `Connect to NOVA`.

- `Transparent blocks`: each zone is a transparent block. This is the default.
- `Wireframe`: only the edges of each zone, as thin lines. The robot and the scene behind a zone keep their own color.
- `Both`: the blocks with their edges.

A box, a prism and any other zone with flat faces shows the edges of its faces.
A sphere shows three rings, a cylinder its two end rings and four lines, a capsule its two end rings and its outline from the side, and a lozenge its outline from above and from the side.
A line has the color of its zone, and a zone the robot enters or violates changes its lines together with its block.
A zone that you hid stays hidden in every mode.

![Screenshot of a KUKA robot inside the monitoring zone S06MoniSlot with the zones drawn as wireframes: thin blue lines in the shape of the cell boundary, orange lines for the monitoring zone the robot is in and yellow lines for the other one](/assets/nova/omniservice/motion_group_inspector/zones-wireframe.webp)

![Screenshot of the same robot and zones drawn as transparent blocks together with their edges](/assets/nova/omniservice/motion_group_inspector/zones-both.webp)

The mode is kept after a restart, and it applies to every robot in the stage.
You can also change it in `Edit` → `Preferences`: the setting `safety_zones/display_mode` is `solid`, `wireframe` or `both`.

### Read the status of each zone

The `Safety Zones` section lists every zone with its number, its name, its kind and its status.
`Controller safety state` shows the state the controller reports for the whole robot, for example `Normal` or `Protective stop`.

The status of a zone is one of these:

- `Robot inside`: a point of the robot is inside the zone. In a keep-out zone, the status turns red, in a monitoring zone orange.
- `Robot outside`: a point of the robot is outside a keep-in zone. The status turns red.
- `Clear`: the robot is outside a keep-out or monitoring zone.
- `Unknown`: the status cannot be checked, for example because the robot has no base prim.

![Screenshot of the robot reaching into a monitoring zone that has turned orange, and the Motion Group Inspector showing Robot inside for that zone](/assets/nova/omniservice/motion_group_inspector/zones-violation.webp)

The eye button of a row shows or hides that zone alone, for example the cell boundary that hides the view on the robot.
The refresh button of the section reads the zones again, for example after the safety setup changed.

![Screenshot of the zone list with the keep-in zone CellArea hidden, so only the two monitoring zones are drawn around the robot](/assets/nova/omniservice/motion_group_inspector/zones-hidden.webp)

Wandelbots NOVA does not report which zone the robot violates. The extension checks it in the scene.
The inspector follows the status while it is open.

### See the status in the 3D scene

A zone also answers the robot in the viewport, whether the inspector is open or not.
While the zones are shown, a zone changes its color and glows when:

- the robot enters a monitoring zone: the zone turns orange.
- the robot violates a zone, so it is inside a keep-out zone or outside a keep-in zone: the zone turns red. A violated keep-out zone keeps its red and only starts to glow.

The zone returns to the color of its kind as soon as the robot leaves the monitoring zone or the violation ends.
A robot inside its keep-in zone is the normal state and changes nothing.

![Screenshot of a Yaskawa robot with its tool inside the keep-out zone Operator sphere. The sphere glows red and the zone list shows Robot inside in red for it](/assets/nova/omniservice/motion_group_inspector/zones-violated.webp)

### Limits of the check

The extension checks the joints and the TCPs of the robot in the scene against the zones.
A link that crosses a zone between two joints is not caught, and neither is the volume of a tool.
A plane, and a zone in a coordinate system the extension cannot resolve, is drawn or listed but shows `Unknown`.
Use the status to find a pose, not to prove that a path is safe.
The controller remains the only safety function.

## Joint limits

In the `Joint Limits` section, switch on `Show joint limits`.
→ A ring appears around the axis of every rotary joint.

![Screenshot of a KUKA robot with a teal band at each joint over the range the joint may move in, white bars at the limits and a needle at the current angle](/assets/nova/omniservice/motion_group_inspector/joint-limits.webp)

Each ring is a narrow band that covers only the range of its joint, from the lower to the upper limit:

- The teal band: where the joint may move. Where there is no band, the joint may not move.
- The white bars at the two ends of the band: the limits of the joint. They are the only white marks that stay put.
- The white needle: the current angle of the joint. It turns with the joint, so you see how far it is from each limit.

The ring and the needle change their color with the position of the joint:

- Within 5 % of the range from a limit: the teal part and the needle turn orange.
- Past a limit: the teal part and the needle turn red.

They turn teal and white again when the joint moves back.
A joint that may turn all the way round gets a whole ring and no limit bars.

The section lists every joint with its lower limit, a gauge, its upper limit and its current angle in degrees.
The angle uses the same colors: orange within 5 % of the range from a limit and red past it.

The limits are the ranges Wandelbots NOVA plans with in automatic mode.
The robot asset in the scene may allow a different range.
A joint that is not rotary, such as a linear axis, gets no ring.

### Show a single joint limit

The eye button at the end of a joint row shows or hides the ring of that joint alone, for example the ring of a joint that hides the view on the tool.
The other rings stay as they are.
The eye buttons work while `Show joint limits` is on. A hidden ring stays hidden when you switch the limits off and on again or read them again.

### Name the joints in the viewport

In the `Joint Limits` section, switch on `Show joint labels`.
→ The name of each shown joint, for example `joint_1`, appears next to its ring.

The name sits beside the middle of the range, on a dark background so you can read it on a bright floor as well as on a dark one.
It has the color of the ring: white, orange near a limit and red past it.
A label follows its joint when the robot moves, and it disappears with its ring when you hide the joint or the limits.

The switch is off at the start. The setting is kept after a restart.
You can also change it in `Edit` → `Preferences`.

## Change the colors

The `Legend` section lists the colors the viewport uses, in two groups:

- `Safety zones`: `Keep-out zone`, `Keep-in zone`, `Monitoring zone`, `Zone entered` and `Zone violated`.
- `Joint limits`: `Joint range`, `Near the limit` and `Past the limit`.

Click a color to change it. Everything that is drawn changes at once.
The table in [Colors](#colors) lists the color each entry starts with.

![Screenshot of the Legend with the colors of the safety zones and of the joint limits](/assets/nova/omniservice/motion_group_inspector/legend.webp)

The safety zones start in the ISO 3864 safety colors, the joint limits in Wandelbots design system colors. Your colors are kept in the settings, so they stay after a restart.
The white of the needle and the limit bars is fixed.
You can also change them in `Edit` → `Preferences`.
Click `Reset colors` to use the starting colors again.

## Colors

The safety zones start in the ISO 3864 safety colors, given as the RAL signal colors. The joint limits start in colors of the Wandelbots design system.
The lines of a wireframe have the color of their zone, so a color here paints a zone's block and its lines.

| What | Default color | Where |
| - | - | - |
| Keep-out zone | Signal red, RAL 3001 (`#A1262D`) | A zone the robot must not enter. |
| Keep-in zone | Signal blue, RAL 5005 (`#004873`) | A zone the robot must not leave, for example the boundary of the cell. |
| Monitoring zone | Signal yellow, RAL 1003 (`#E8BF28`) | A zone the controller only reports. |
| Zone entered | Signal orange, RAL 2010 (`#CB6119`) | A monitoring zone the robot is in. It glows. |
| Zone violated | Signal red, RAL 3001 (`#A1262D`) | A keep-out zone the robot is in, or a keep-in zone the robot has left. It glows. |
| Joint range | `SUCCESS_MAIN` (`#26A69A`) | The band over the range a joint may move in. |
| Near the limit | `WARNING_MAIN` (`#FFAB40`) | The band, the needle and the label of a joint within 5 % of its range from a limit. |
| Past the limit | `ERROR_MAIN` (`#EF5350`) | The band, the needle and the label of a joint outside the range. |
| Limit bars | `TEXT_PRIMARY_CONTRAST` (`#FFFFFF`) | The two bars at the ends of the band. The white is fixed. |
| Needle | `TEXT_PRIMARY_CONTRAST` (`#FFFFFF`) | The needle at the current angle, and the label of a joint that is in range. The white is fixed. |

The colors you can change are stored in the settings, so they stay after a restart.
All of them are under `/persistent/exts/wandelbots.omni/`:

- `safety_zones/keep_out_color`, `safety_zones/keep_in_color` and `safety_zones/monitor_color`
- `safety_zones/entered_color` and `safety_zones/violated_color`
- `joint_limits/allowed_color`, `joint_limits/near_color` and `joint_limits/past_color`

Click `Reset colors` in the `Legend` section to set all of them back to the colors in the table.

## Where the zones and rings are stored

The zones are stored in the stage below the robot prim, in a `SafetyZones` prim.
They sit at the base of the robot, turned back by the mounting Wandelbots NOVA knows for the robot.
The joint rings are stored in a `JointLimits` prim next to it.

Both are saved with the stage.
They carry no physics and no collision, so the collision setup export does not pick them up and they do not change the simulation.
To remove them, delete the `SafetyZones` or `JointLimits` prim.
