|
Enpose API — C++
Enpose 6-DoF tracking API
|
RAII handle to a live pose stream from one device. More...
#include <enpose_api.hpp>
Public Member Functions | |
| PoseStream (const std::string &ip, bool create_thread=true) | |
Connect to the device at ip (an IPv4 string; the Enpose API is IPv4-only). | |
| PoseStream (const DeviceInfo &device, bool create_thread=true) | |
| Connect to a discovered device. | |
| ~PoseStream () | |
| PoseStream (const PoseStream &)=delete | |
| PoseStream & | operator= (const PoseStream &)=delete |
| PoseStream (PoseStream &&other) noexcept | |
| PoseStream & | operator= (PoseStream &&other) noexcept |
| std::vector< MarkerPose > | receive (bool block=false) |
| Return poses received from the stream. | |
RAII handle to a live pose stream from one device.
Move-only; the connection is closed automatically on destruction.
|
inlineexplicit |
Connect to the device at ip (an IPv4 string; the Enpose API is IPv4-only).
When create_thread is true (the default and preferred mode), a background thread receives and buffers poses. Throws Error on failure.
|
inlineexplicit |
Connect to a discovered device.
|
inline |
|
delete |
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
|
inline |
Return poses received from the stream.
When block is false (the default), returns the poses that have arrived since the previous call (empty if none) without waiting. When block is true, waits for at least one pose update, up to a 3-second timeout — so the result is still empty if none arrives in that window. Throws Error on an unrecoverable communication failure.