vrpn  07.33
Virtual Reality Peripheral Network
vrpn_Tracker_WiimoteHead.C File Reference

Implementation of Wii Remote head tracking filter driver. More...

#include "quat.h"
#include "vrpn_Connection.h"
#include "vrpn_Tracker_WiimoteHead.h"
#include "vrpn_Types.h"
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <iostream>
Include dependency graph for vrpn_Tracker_WiimoteHead.C:

Go to the source code of this file.

Macros

#define MAKE_IDENTITY_QUAT(dest)   dest[0] = dest[1] = dest[2] = 0; dest[3] = 1
 Utility function to set a quat equal to the identity rotation. More...
 
#define MAKE_NULL_VEC(dest)   dest[0] = dest[1] = dest[2] = 0
 Utility function to set a 3-vector equal to the zero vector. More...
 

Variables

Constants
const double two = 2
 
const double xResSensor = 1024.0
 
const double yResSensor = 768.0
 
const double fovX = Q_DEG_TO_RAD(43.0)
 Field of view experimentally determined at Iowa State University March 2010. More...
 
const double fovY = Q_DEG_TO_RAD(32.00)
 
const double radPerPx = fovX / xResSensor
 
const double cvtDistToAngle = radPerPx / two
 

Detailed Description

Implementation of Wii Remote head tracking filter driver.

Date
2009-2010
Author
Ryan Pavlik rpavl.nosp@m.ik@i.nosp@m.astat.nosp@m.e.ed.nosp@m.u and abiry.nosp@m.an@r.nosp@m.yand..nosp@m.net http://academic.cleardefinition.com/ Iowa State University Virtual Reality Applications Center Human-Computer Interaction Graduate Program

See ASME paper WINVR2010-3771 for more details on this system.

Definition in file vrpn_Tracker_WiimoteHead.C.

Macro Definition Documentation

◆ MAKE_IDENTITY_QUAT

#define MAKE_IDENTITY_QUAT (   dest)    dest[0] = dest[1] = dest[2] = 0; dest[3] = 1

◆ MAKE_NULL_VEC

#define MAKE_NULL_VEC (   dest)    dest[0] = dest[1] = dest[2] = 0

Variable Documentation

◆ cvtDistToAngle

const double cvtDistToAngle = radPerPx / two

◆ fovX

const double fovX = Q_DEG_TO_RAD(43.0)

Field of view experimentally determined at Iowa State University March 2010.

Definition at line 77 of file vrpn_Tracker_WiimoteHead.C.

◆ fovY

const double fovY = Q_DEG_TO_RAD(32.00)

Definition at line 77 of file vrpn_Tracker_WiimoteHead.C.

◆ radPerPx

const double radPerPx = fovX / xResSensor

Definition at line 80 of file vrpn_Tracker_WiimoteHead.C.

◆ two

const double two = 2

Definition at line 70 of file vrpn_Tracker_WiimoteHead.C.

◆ xResSensor

const double xResSensor = 1024.0

Definition at line 73 of file vrpn_Tracker_WiimoteHead.C.

◆ yResSensor

const double yResSensor = 768.0

Definition at line 73 of file vrpn_Tracker_WiimoteHead.C.