1#ifndef INCLUDED_ANALOGFLY
2#define INCLUDED_ANALOGFLY
43 x.name =
y.name =
z.name =
109 float update_rate,
bool absolute = vrpn_FALSE,
110 bool reportChanges = VRPN_FALSE,
bool worldFrame = VRPN_FALSE);
141 virtual void reset(
void);
Generic connection class not specific to the transport mechanism.
vrpn_Tracker_AnalogFly * af
vrpn_TAF_axis sx
Rotation in the positive direction about the three axes.
char * reset_name
Button device that is used to reset the matrix to the origin.
vrpn_TAF_axis x
Translation along each of these three axes.
vrpn_Tracker_AnalogFlyParam(void)
char * clutch_name
Clutch device that is used to enable relative motion over.
This class will turn an analog device such as a joystick or a camera.
void convert_matrix_to_tracker(void)
vrpn_Button_Remote * d_reset_button
static int VRPN_CALLBACK handle_newConnection(void *, vrpn_HANDLERPARAM)
void update_matrix_based_on_values(double time_interval)
q_matrix_type d_clutchMatrix
int setup_channel(vrpn_TAF_fullaxis *full)
struct timeval d_prevtime
vrpn_Button_Remote * d_clutch_button
static void VRPN_CALLBACK handle_analog_update(void *userdata, const vrpn_ANALOGCB info)
int teardown_channel(vrpn_TAF_fullaxis *full)
bool shouldReport(double elapsedInterval) const
vrpn_Tracker_AnalogFly(const char *name, vrpn_Connection *trackercon, vrpn_Tracker_AnalogFlyParam *params, float update_rate, bool absolute=vrpn_FALSE, bool reportChanges=VRPN_FALSE, bool worldFrame=VRPN_FALSE)
static void VRPN_CALLBACK handle_reset_press(void *userdata, const vrpn_BUTTONCB info)
static void VRPN_CALLBACK handle_clutch_press(void *userdata, const vrpn_BUTTONCB info)
q_matrix_type d_currentMatrix
virtual void mainloop()
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
q_matrix_type d_initMatrix
virtual void reset(void)
Reset the current matrix to zero and store it into the tracker position/quaternion location.
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
This structure is what is passed to a vrpn_Connection message callback.
class VRPN_API vrpn_Tracker_AnalogFly
class VRPN_API vrpn_Connection