25 #ifndef INCLUDED_SkeletonComponent_h_GUID_53FA481D_05BD_4CA5_3A50_FE01B600476E 26 #define INCLUDED_SkeletonComponent_h_GUID_53FA481D_05BD_4CA5_3A50_FE01B600476E 31 #include <osvr/Common/Export.h> 39 #include <json/value.h> 40 #include <vrpn_BaseClass.h> 61 static const char *identifier();
68 static const char *identifier();
80 static OSVR_COMMON_EXPORT shared_ptr<SkeletonComponent>
81 create(std::string
const &jsonSpec);
94 OSVR_COMMON_EXPORT
void 100 OSVR_COMMON_EXPORT
void sendArticulationSpec(std::string
const &spec);
104 OSVR_COMMON_EXPORT OSVR_ReturnCode
105 setArticulationSpec(std::string
const &jsonDescriptor);
113 OSVR_COMMON_EXPORT
void registerSkeletonHandler(SkeletonHandler cb);
114 OSVR_COMMON_EXPORT
void 115 registerSkeletonSpecHandler(SkeletonSpecHandler cb);
119 virtual void m_parentSet();
121 static int VRPN_CALLBACK m_handleSkeletonRecord(
void *userdata,
122 vrpn_HANDLERPARAM p);
123 static int VRPN_CALLBACK
124 m_handleSkeletonSpecRecord(
void *userdata, vrpn_HANDLERPARAM p);
127 std::vector<SkeletonHandler> m_cb;
128 std::vector<SkeletonSpecHandler> m_cb_spec;
136 #endif // INCLUDED_SkeletonComponent_h_GUID_53FA481D_05BD_4CA5_3A50_FE01B600476E 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
Header declaring a type and values for simple C return codes.
Definition: CommonComponent.h:44
Definition: SkeletonComponent.h:57
Definition: SkeletonComponent.h:48
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
messages::SkeletonRecord skeletonRecord
Message from server to client, containing skeleton notification.
Definition: SkeletonComponent.h:85
BaseDevice component, for the VRPN built-in common messages.
Definition: CommonComponent.h:82
Definition: DeviceComponent.h:42
CRTP class template wrapping message-specific data and/or logic.
Definition: MessageRegistration.h:44
Definition: SkeletonComponent.h:63
BaseDevice component.
Definition: SkeletonComponent.h:74
Definition: SkeletonComponent.cpp:44
Definition: SkeletonComponent.cpp:67
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
messages::SkeletonSpecRecord skeletonSpecRecord
Message from server to client, containing new/updated skeleton articulation spec. ...
Definition: SkeletonComponent.h:89
Definition: SkeletonComponent.h:52