| PST SDK 6.0.0.0-272350a

SetDefaultReference

Reset the reference system to the default reference system.

Resets the currently set reference system to the default reference system. The default system is defined by a 4x4 identity matrix. This places the origin of the reference system 1 meter away from the PST Tracker. It is oriented such that the Z-axis points away from the PST tracker and the X-axis is parallel to the PST tracker.

Endpoint

      POST /PSTapi/SetDefaultReference HTTP/1.1
      Host: address:port

Response

Returns an array of 16 floats representing the new Reference system as a row-major 4x4 homogeneous transformation matrix

ReferenceMatrix Object

Key | Value Type | Description
--- | --- | ---
ReferenceMatrix | Array of numbers | Reference Matrix. Array of 16 floats representing a row-major 4x4 homogeneous transformation matrix

Example

      {"ReferenceMatrix":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}

Verification table

Status Code | Content Example | Meaning
--- | --- | ---
200 | JSON payload | Success message
500 | {"message":"TrackerException: <...>"} | An other type of internal error