# Optitrack Alignment

Once all the cameras has been calibrated and their relative position between each other has been reconstructed, the next step is to offset / translate the entire group of cameras so the tracking volume is aligned with the 3D space within Grid Studio.&#x20;

There are several options to do this. Depending on how the type of markers and how the markers are arranged, you can choose the appropriate tool.

* Rigid Body – using a defined Rigid Body as the object to align the Optitrack Volume. Markers need to be placed at the same location as all the points in the rigid body
* Triangle – using 3 markers to form a triangle with one at the origin point, one on the x axis and one one the z axis. The distance on the x and z axis can be adjusted along with the height offset from the ground plane.
* Point Refrence – using a number of reference points in 3D space to align the Optitrack volume. Placing markers at the precise location as the reference points in SP to align the Optitrack volume. It is recommended to use at least 4 points.

{% hint style="info" %}
Similar to the calibration process, it is ideal to ensure that only the markers used the alignment process can be seen and nothing else are picked up as a valid marker by the cameras.
{% endhint %}

{% hint style="info" %}
At a minimum, there needs to be at least 2 cameras can see these markers for the alignment calculation to work. But more would yield better accuracy.
{% endhint %}

Similar to the calibration process, once the appropriate alignment process has been defined, and markers are placed at the correct location, press the “+” button next to the recorder section to open up a window to start the capturing process.

Press the “record” button to start the capturing process. This should happen very quickly to capture 1 valid frame from multiple cameras for the alignment process.

Once it has been captured, the recording would stop automatically.

Once the capturing of the data is finished, the recorder window can be closed. To run the alignment based on the recording, press the “play” button at the header of the align tool.&#x20;

Once this is completed, the entire group of optitrack cameras would be translated to their location based on the origin point set by the alignment process. This can be double checked in the viewport.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stage-precision.gitbook.io/grid/optitrack/optitrack-volume/optitrack-alignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
