OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Tracker interface (base C API)

Sending tracker reports from a device in your plugin. More...

Typedefs

typedef struct
OSVR_TrackerDeviceInterfaceObject
OSVR_TrackerDeviceInterface
 Opaque type used in conjunction with a device token to send data on a tracker interface.
 

Functions

OSVR_ReturnCode osvrDeviceTrackerConfigure (OSVR_DeviceInitOptions opts, OSVR_TrackerDeviceInterface *iface)
 Specify that your device will implement the Tracker interface. More...
 
OSVR_ReturnCode osvrDeviceTrackerSendPose (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_PoseState const *val, OSVR_ChannelCount sensor)
 Report the full rigid body pose of a sensor, automatically generating a timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendPoseTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_PoseState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the full rigid body pose of a sensor, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendPosition (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_PositionState const *val, OSVR_ChannelCount sensor)
 Report the position of a sensor that doesn't report orientation, automatically generating a timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendPositionTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_PositionState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the position of a sensor that doesn't report orientation, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendOrientation (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_OrientationState const *val, OSVR_ChannelCount sensor)
 Report the orientation of a sensor that doesn't report position, automatically generating a timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendOrientationTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_OrientationState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the orientation of a sensor that doesn't report position, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendVelocityTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_VelocityState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the linear and angular velocity of a sensor, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendLinearVelocityTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_LinearVelocityState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the linear velocity of a sensor that doesn't report angular velocity, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendAngularVelocityTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_AngularVelocityState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the angular velocity of a sensor that doesn't report linear velocity, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendAccelerationTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_AccelerationState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the linear and angular Acceleration of a sensor, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendLinearAccelerationTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_LinearAccelerationState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the linear acceleration of a sensor that doesn't report angular acceleration, using the supplied timestamp.
 
OSVR_ReturnCode osvrDeviceTrackerSendAngularAccelerationTimestamped (OSVR_DeviceToken dev, OSVR_TrackerDeviceInterface iface, OSVR_AngularAccelerationState const *val, OSVR_ChannelCount sensor, OSVR_TimeValue const *timestamp)
 Report the angular acceleration of a sensor that doesn't report linear acceleration, using the supplied timestamp.
 

Detailed Description

Sending tracker reports from a device in your plugin.

Function Documentation

OSVR_ReturnCode osvrDeviceTrackerConfigure ( OSVR_DeviceInitOptions  opts,
OSVR_TrackerDeviceInterface iface 
)

#include <osvr/PluginKit/TrackerInterfaceC.h>

Specify that your device will implement the Tracker interface.

Parameters
optsThe device init options object.
[out]ifaceAn interface object you should retain with the same lifetime as the device token in order to send messages conforming to a tracker interface.

Definition at line 49 of file TrackerInterfaceC.cpp.