25 #ifndef INCLUDED_LocomotionComponent_h_GUID_60F8A9AB_1531_4AB4_E842_89EBB4851EE5
26 #define INCLUDED_LocomotionComponent_h_GUID_60F8A9AB_1531_4AB4_E842_89EBB4851EE5
38 #include <vrpn_BaseClass.h>
62 static const char *identifier();
70 static const char *identifier();
82 static OSVR_COMMON_EXPORT shared_ptr<LocomotionComponent>
create();
91 OSVR_COMMON_EXPORT
void
96 OSVR_COMMON_EXPORT
void
109 OSVR_COMMON_EXPORT
void
110 registerNaviVelocityHandler(NaviVelocityHandler cb);
111 OSVR_COMMON_EXPORT
void
112 registerNaviPositionHandler(NaviPositionHandler cb);
116 virtual void m_parentSet();
118 static int VRPN_CALLBACK
119 m_handleNaviVelocityRecord(
void *userdata, vrpn_HANDLERPARAM p);
120 static int VRPN_CALLBACK
121 m_handleNaviPositionRecord(
void *userdata, vrpn_HANDLERPARAM p);
123 std::vector<NaviVelocityHandler> m_cb_vel;
124 std::vector<NaviPositionHandler> m_cb_posn;
133 #endif // INCLUDED_LocomotionComponent_h_GUID_60F8A9AB_1531_4AB4_E842_89EBB4851EE5
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
messages::NaviVelocityRecord naviVelRecord
Message from server to client, containing navigation velocity.
BaseDevice component, for the VRPN built-in common messages.
static shared_ptr< LocomotionComponent > create()
Factory method.
CRTP class template wrapping message-specific data and/or logic.
A structure defining a 2D vector, which represents position.
Automatically-generated export header - do not edit!
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
messages::NaviPositionRecord naviPosnRecord
Optional message from server to client, containing navigation position.