25 #ifndef INCLUDED_LocomotionComponent_h_GUID_60F8A9AB_1531_4AB4_E842_89EBB4851EE5 26 #define INCLUDED_LocomotionComponent_h_GUID_60F8A9AB_1531_4AB4_E842_89EBB4851EE5 29 #include <osvr/Common/Export.h> 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 Definition: LocomotionComponent.cpp:42
uint32_t OSVR_ChannelCount
The integer type specifying a number of channels/sensors or a channel/sensor index.
Definition: ChannelCountC.h:51
Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
messages::NaviVelocityRecord naviVelRecord
Message from server to client, containing navigation velocity.
Definition: LocomotionComponent.h:85
Definition: CommonComponent.h:44
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: LocomotionComponent.h:65
BaseDevice component, for the VRPN built-in common messages.
Definition: CommonComponent.h:82
Definition: LocomotionComponent.h:57
BaseDevice component.
Definition: LocomotionComponent.h:76
Definition: DeviceComponent.h:42
Definition: LocomotionComponent.cpp:69
Definition: LocomotionComponent.h:46
CRTP class template wrapping message-specific data and/or logic.
Definition: MessageRegistration.h:44
A structure defining a 2D vector, which represents position.
Definition: Vec2C.h:48
Definition: LocomotionComponent.h:51
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
messages::NaviPositionRecord naviPosnRecord
Optional message from server to client, containing navigation position.
Definition: LocomotionComponent.h:89