The Classic SDK is considered to be a legacy SDK and is no longer actively supported. The PST SDK is the recommended way for integrating the PST into your own solution.
Explore PST SDKThe Classic SDK offers real-time access to the tracking data produced by the PST. Offering a native C API as well as bindings for C# and Python, it acts as a middle-ware layer between the PST Client application and your own application. Having data gathering as its sole purpose, it has a simple and easy to use API that can quickly be implemented.
The Classic SDK offers a simple data-only communication protocol that operates through the PST Client application. This means that the PST Server and PST Client applications need to be running at all times.
Advanced control of the PST unit is not possible through the classic SDK and is only offered through the PST SDK.
With only a small amount of code you can create an application that receives tracking data through the PST Client.
This example is a fully functional Classic SDK application that connects to the PST and prints tracking data to the command line.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #include <stdio.h> #include "pstapi.h" #include "windows.h" int main(int ac, char** av) { int i, j, k; struct PSTSensor sensor; if (!pst_connect()) exit(1); for(k = 0; k < 1000; ++k) { while(pst_get_sensor(&sensor)) { printf("Pose for: %s\n", sensor.name); for(i = 0; i < 4; ++i) { for(j = 0; j < 4; ++j) { printf("%.2f ", sensor.pose[i * 4 + j]); } printf("\n"); } } Sleep(10); } pst_disconnect(); return 0; } |
The Classic SDK is simple and easy to use. For a more detailed description of the C API offered by the Classic SDK, please check out the Classic SDK documentation.
Learn More