29 #ifndef VRPNANALOGDEVICE_H
30 #define VRPNANALOGDEVICE_H
33 #include <glm/glm.hpp>
40 #include <boost/log/trivial.hpp>
41 #define BOOST_ASSERT_MSG_OSTREAM std::cout
42 #include <boost/assert.hpp>
45 class vrpn_Analog_Remote;
57 InputDeviceVRPNAnalog(
const std::string &vrpnAnalogDeviceName,
const std::vector<std::string> &eventsToGenerate);
63 void sendEventIfChanged(
int channelNumber,
double data);
64 std::string getEventName(
int channelNumber);
65 int numChannels() {
return _eventNames.size(); }
68 vrpn_Analog_Remote *_vrpnDevice;
69 std::vector<std::string> _eventNames;
70 std::vector<double> _channelValues;
71 std::vector<EventRef> _pendingEvents;
73 InputDeviceVRPNAnalog(
const std::string &vrpnAnalogDeviceName,
const std::vector<std::string> &eventsToGenerate)
75 BOOST_ASSERT_MSG(
false,
"VRPN is currently unsupported. Set cmake option USE_VRPN to ON and recompile.");
79 BOOST_ASSERT_MSG(
false,
"VRPN is currently unsupported. Set cmake option USE_VRPN to ON and recompile.");