38 "com.osvr.exampleclients.TrackerState");
44 context.getInterface(
"/me/hands/left");
47 for (
int i = 0; i < 1000000; ++i) {
60 std::cout <<
"No pose state!" << std::endl;
62 std::cout <<
"Got POSE state: Position = ("
75 std::cout <<
"Library shut down, exiting." << std::endl;
Interface handle object. Typically acquired from a ClientContext.
Client context object: Create and keep one in your application. Handles lifetime management and provi...
double osvrQuatGetY(OSVR_Quaternion const *q)
Accessor for quaternion component Y.
OSVR_Quaternion rotation
Orientation as a unit quaternion.
double data[3]
Internal array data.
double osvrQuatGetX(OSVR_Quaternion const *q)
Accessor for quaternion component X.
OSVR_ClientInterface get()
Get the raw OSVR_ClientInterface from this wrapper.
#define OSVR_RETURN_SUCCESS
The "success" value for an OSVR_ReturnCode.
A structure defining a 3D (6DOF) rigid body pose: translation and rotation.
double osvrQuatGetW(OSVR_Quaternion const *q)
Accessor for quaternion component W.
Header containing the inline implementation of Interface.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
double osvrQuatGetZ(OSVR_Quaternion const *q)
Accessor for quaternion component Z.
OSVR_Vec3 translation
Position vector.
OSVR_ReturnCode osvrGetPoseState(OSVR_ClientInterface iface, struct OSVR_TimeValue *timestamp, OSVR_PoseState *state)
Get Pose state from an interface, returning failure if none \ * exists.