Loading...
Searching...
No Matches
GetTargetMarkers

Get 3D marker positions of stored tracking Target.

Endpoint

GET /PSTapi/GetTargetMarkers HTTP/1.1
Query string parameter: target name
Host: address:port

Get Request example

http://localhost:7278/PSTapi/GetTargetMarkers?MyTargetName

Response

Array of JSON objects, representing the 3D positions of the markers making up the specified tracking Target.

TargetMarkers Object

Key | Value Type | Description
--- | --- | ---
TargetMarkers | array of objects | array of the markers 3D positions making up the specified tracking Target
"x" |  | x coordinate of one marker
"y" |  | y coordinate of one marker
"z" |  | z coordinate of one marker

Example

{
"TargetMarkers": [
{
"x": -0.058197956532239914,
"y": -0.0019159715157002211,
"z": -0.0031546063255518675
},
{
"x": 0.0021180473268032074,
"y": 0.00042291116551496089,
"z": -0.0077961781062185764
},
{
"x": -0.016573090106248856,
"y": -0.00092606159159913659,
"z": 0.013718941248953342
},
{
"x": 0.072652965784072876,
"y": 0.0024192421697080135,
"z": -0.0027682830113917589
}
]
}

Verification table

Status Code | Content Example | Meaning
--- | --- | ---
200 | JSON payload | Success message
400 | {"message":"JSON_ERROR: <...>"} | An error occurred when parsing a JSON object
400 | {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} | The model provided in the query has not been found in the database
500 | {"message":"TrackerException: <...>"} | An other type of internal error