OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TrackerInterfaceC.h
Go to the documentation of this file.
1 
13 /*
14 // Copyright 2014 Sensics, Inc.
15 //
16 // Licensed under the Apache License, Version 2.0 (the "License");
17 // you may not use this file except in compliance with the License.
18 // You may obtain a copy of the License at
19 //
20 // http://www.apache.org/licenses/LICENSE-2.0
21 //
22 // Unless required by applicable law or agreed to in writing, software
23 // distributed under the License is distributed on an "AS IS" BASIS,
24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25 // See the License for the specific language governing permissions and
26 // limitations under the License.
27 */
28 
29 #ifndef INCLUDED_TrackerInterfaceC_h_GUID_FA1B5B80_FEB5_469D_8F1E_7ED54A27A7AD
30 #define INCLUDED_TrackerInterfaceC_h_GUID_FA1B5B80_FEB5_469D_8F1E_7ED54A27A7AD
31 
32 /* Internal Includes */
36 
37 /* Library/third-party includes */
38 /* none */
39 
40 /* Standard includes */
41 /* none */
42 
43 OSVR_EXTERN_C_BEGIN
44 
54 typedef struct OSVR_TrackerDeviceInterfaceObject *OSVR_TrackerDeviceInterface;
55 
64 OSVR_PLUGINKIT_EXPORT
65 OSVR_ReturnCode
67  OSVR_OUT_PTR OSVR_TrackerDeviceInterface *iface)
68  OSVR_FUNC_NONNULL((1, 2));
69 
73 OSVR_PLUGINKIT_EXPORT
74 OSVR_ReturnCode
76  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
77  OSVR_IN_PTR OSVR_PoseState const *val,
78  OSVR_IN OSVR_ChannelCount sensor)
79  OSVR_FUNC_NONNULL((1, 2, 3));
80 
84 OSVR_PLUGINKIT_EXPORT
86  OSVR_IN_PTR OSVR_DeviceToken dev,
87  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
88  OSVR_IN_PTR OSVR_PoseState const *val, OSVR_IN OSVR_ChannelCount sensor,
89  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
90  OSVR_FUNC_NONNULL((1, 2, 3, 5));
91 
95 OSVR_PLUGINKIT_EXPORT
96 OSVR_ReturnCode
98  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
99  OSVR_IN_PTR OSVR_PositionState const *val,
100  OSVR_IN OSVR_ChannelCount sensor)
101  OSVR_FUNC_NONNULL((1, 2, 3));
102 
106 OSVR_PLUGINKIT_EXPORT
108  OSVR_IN_PTR OSVR_DeviceToken dev,
109  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
110  OSVR_IN_PTR OSVR_PositionState const *val, OSVR_IN OSVR_ChannelCount sensor,
111  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
112  OSVR_FUNC_NONNULL((1, 2, 3, 5));
113 
117 OSVR_PLUGINKIT_EXPORT
118 OSVR_ReturnCode
120  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
121  OSVR_IN_PTR OSVR_OrientationState const *val,
122  OSVR_IN OSVR_ChannelCount sensor)
123  OSVR_FUNC_NONNULL((1, 2, 3));
124 
128 OSVR_PLUGINKIT_EXPORT
130  OSVR_IN_PTR OSVR_DeviceToken dev,
131  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
132  OSVR_IN_PTR OSVR_OrientationState const *val,
133  OSVR_IN OSVR_ChannelCount sensor,
134  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
135  OSVR_FUNC_NONNULL((1, 2, 3, 5));
136 
140 OSVR_PLUGINKIT_EXPORT
142  OSVR_IN_PTR OSVR_DeviceToken dev,
143  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
144  OSVR_IN_PTR OSVR_VelocityState const *val, OSVR_IN OSVR_ChannelCount sensor,
145  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
146  OSVR_FUNC_NONNULL((1, 2, 3, 5));
147 
151 OSVR_PLUGINKIT_EXPORT
153  OSVR_IN_PTR OSVR_DeviceToken dev,
154  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
155  OSVR_IN_PTR OSVR_LinearVelocityState const *val,
156  OSVR_IN OSVR_ChannelCount sensor,
157  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
158  OSVR_FUNC_NONNULL((1, 2, 3, 5));
159 
163 OSVR_PLUGINKIT_EXPORT
165  OSVR_IN_PTR OSVR_DeviceToken dev,
166  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
167  OSVR_IN_PTR OSVR_AngularVelocityState const *val,
168  OSVR_IN OSVR_ChannelCount sensor,
169  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
170  OSVR_FUNC_NONNULL((1, 2, 3, 5));
171 
175 OSVR_PLUGINKIT_EXPORT
177  OSVR_IN_PTR OSVR_DeviceToken dev,
178  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
179  OSVR_IN_PTR OSVR_AccelerationState const *val,
180  OSVR_IN OSVR_ChannelCount sensor,
181  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
182  OSVR_FUNC_NONNULL((1, 2, 3, 5));
183 
187 OSVR_PLUGINKIT_EXPORT
189  OSVR_IN_PTR OSVR_DeviceToken dev,
190  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
191  OSVR_IN_PTR OSVR_LinearAccelerationState const *val,
192  OSVR_IN OSVR_ChannelCount sensor,
193  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
194  OSVR_FUNC_NONNULL((1, 2, 3, 5));
195 
199 OSVR_PLUGINKIT_EXPORT
201  OSVR_IN_PTR OSVR_DeviceToken dev,
202  OSVR_IN_PTR OSVR_TrackerDeviceInterface iface,
203  OSVR_IN_PTR OSVR_AngularAccelerationState const *val,
204  OSVR_IN OSVR_ChannelCount sensor,
205  OSVR_IN_PTR OSVR_TimeValue const *timestamp)
206  OSVR_FUNC_NONNULL((1, 2, 3, 5));
207  /* end of group */
209 
210 OSVR_EXTERN_C_END
211 
212 #endif
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...
Struct for combined acceleration state.
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
Definition: ChannelCountC.h:51
A structure defining a 3D vector, often a position/translation.
Definition: Vec3C.h:48
struct OSVR_TrackerDeviceInterfaceObject * OSVR_TrackerDeviceInterface
Opaque type used in conjunction with a device token to send data on a tracker interface.
A structure defining a quaternion, often a unit quaternion representing 3D rotation.
Definition: QuaternionC.h:49
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.
The quaternion represents the incremental rotation taking place over a period of dt seconds...
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.
struct OSVR_DeviceTokenObject * OSVR_DeviceToken
Opaque type of a registered device token within the core library.
struct OSVR_DeviceInitObject * OSVR_DeviceInitOptions
Opaque type of a device initialization object.
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 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 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 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.
A structure defining a 3D (6DOF) rigid body pose: translation and rotation.
Definition: Pose3C.h:54
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 osvrDeviceTrackerConfigure(OSVR_DeviceInitOptions opts, OSVR_TrackerDeviceInterface *iface)
Specify that your device will implement the Tracker interface.
Struct for combined velocity state.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
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 times...
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 times...
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. ...