PST SDK  5.0.1.0-acae3ae
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 occured when parsing a json object
400 {"message":"TrackerException:MSG_MODEL_NOT_FOUND <...>"} the model provided in the querry has not been found in the database
500 {"message":"TrackerException: <...>"} an other type of internal error