Enpose API — .NET
Managed P/Invoke wrapper over the enpose_api C ABI: it loads the prebuilt
shared library at run time, so no native build step is needed.
It covers the full client workflow:
- Discover() finds Enpose devices on the local network.
- PoseStream connects to a device and yields live MarkerPose updates.
using Enpose;
foreach (DeviceInfo device in EnposeApi.Discover())
{
if (!device.Compatible) continue;
using var stream = new PoseStream(device); // threaded by default
foreach (MarkerPose pose in stream.Receive(block: true))
{
Console.WriteLine($"{pose.MarkerId} {pose.X} {pose.Y} {pose.Z}");
}
}
Failures throw EnposeException. See the API reference for every class, method, and property.