42 const char *listen_tracker_name,
43 unsigned channels, vrpn_float64 vecMinCutoff = 1.15,
44 vrpn_float64 vecBeta = 0.5, vrpn_float64 vecDerivativeCutoff = 1.2,
45 vrpn_float64 quatMinCutoff = 1.5, vrpn_float64 quatBeta = 0.5,
46 vrpn_float64 quatDerivativeCutoff = 1.2);
55 struct timeval *d_last_report_times;
79 , std::string origTrackerName
80 , vrpn_int32 numSensors = 1
81 , vrpn_float64 predictionTime = 1.0 / 60.0
82 ,
bool estimateVelocity =
true
93 static int test(
void);
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
Generic connection class not specific to the transport mechanism.
std::vector< RotationState > d_rotationStates
void sendNewPrediction(vrpn_int32 sensor)
Send a prediction based on the time of the new information; date the.
vrpn_Tracker_DeadReckoning_Rotation(std::string myName, vrpn_Connection *c, std::string origTrackerName, vrpn_int32 numSensors=1, vrpn_float64 predictionTime=1.0/60.0, bool estimateVelocity=true)
static void VRPN_CALLBACK handle_tracker_report(void *userdata, const vrpn_TRACKERCB info)
Static callback handler for tracker reports and tracker velocity reports.
static void VRPN_CALLBACK handle_tracker_velocity_report(void *userdata, const vrpn_TRACKERVELCB info)
vrpn_Tracker_Remote * d_origTracker
static int test(void)
Test the class to make sure it functions as it should. Returns 0 on success,.
vrpn_float64 d_predictionTime
vrpn_Tracker_FilterOneEuro(const char *name, vrpn_Connection *trackercon, const char *listen_tracker_name, unsigned channels, vrpn_float64 vecMinCutoff=1.15, vrpn_float64 vecBeta=0.5, vrpn_float64 vecDerivativeCutoff=1.2, vrpn_float64 quatMinCutoff=1.5, vrpn_float64 quatBeta=0.5, vrpn_float64 quatDerivativeCutoff=1.2)
vrpn_Tracker_Server(const char *name, vrpn_Connection *c, vrpn_int32 sensors=1)
vrpn_Tracker(const char *name, vrpn_Connection *c=NULL, const char *tracker_cfg_file_name=NULL)
bool d_receivedAngularVelocityReport
vrpn_float64 d_lastOrientation[4]
vrpn_float64 d_rotationAmount[4]
vrpn_float64 d_lastPosition[3]
double d_rotationInterval
struct timeval d_lastReportTime
Header file that completely implements a direction and orientation filter on tracking reports; it doe...
vrpn_OneEuroFilter< vrpn_QuatFilterable > vrpn_OneEuroFilterQuat
vrpn_OneEuroFilter vrpn_OneEuroFilterVec