Equalizer
1.4.1
|
Public Member Functions | |
Tracker () | |
Constructs a new Tracker and sets it's _running state to false. | |
bool | init (const std::string &port) |
Configures the serial port and initialises the tracker. | |
void | setWorldToEmitter (const eq::Matrix4f &matrix) |
Set the matrix defining the transformation from world coordinates to emitter coordinates. | |
void | setSensorToObject (const eq::Matrix4f &matrix) |
Set the matrix defining the transformation from sensor coordinates to coordinates of the tracked object. | |
bool | isRunning () const |
Checks if the tracker is running. | |
bool | update () |
Gets new position and orientation data from the tracker and stores them in the _pos and _hpr arrays. | |
const eq::Matrix4f & | getMatrix () const |
Gets the transformation matrix with the position and orientation data. |
Definition at line 37 of file eqPly/tracker.h.
const eq::Matrix4f& eqPly::Tracker::getMatrix | ( | ) | const [inline] |
Gets the transformation matrix with the position and orientation data.
This function will not communicate with the tracker,.
Definition at line 101 of file eqPly/tracker.h.
bool Tracker::init | ( | const std::string & | port | ) |
Configures the serial port and initialises the tracker.
Sets the _running state to true if the initialisation is successful.
port | the used serial port. |
true
if the tracker works correctly, false
otherwise. Definition at line 52 of file eqPly/tracker.cpp.
Referenced by eqPly::Config::init().
bool eqPly::Tracker::isRunning | ( | ) | const [inline] |
Checks if the tracker is running.
true
if the tracker is ready, false
otherwise. Definition at line 80 of file eqPly/tracker.h.
void eqPly::Tracker::setSensorToObject | ( | const eq::Matrix4f & | matrix | ) | [inline] |
Set the matrix defining the transformation from sensor coordinates to coordinates of the tracked object.
matrix | the sensor to object matrix. |
Definition at line 71 of file eqPly/tracker.h.
Referenced by eqPly::Config::init().
void eqPly::Tracker::setWorldToEmitter | ( | const eq::Matrix4f & | matrix | ) | [inline] |
Set the matrix defining the transformation from world coordinates to emitter coordinates.
matrix | the world to emitter matrix. |
Definition at line 62 of file eqPly/tracker.h.
Referenced by eqPly::Config::init().
bool Tracker::update | ( | ) |
Gets new position and orientation data from the tracker and stores them in the _pos and _hpr arrays.
For a successful update, _running must be true.
true
if the data transfer is successful, false
otherwise. Definition at line 124 of file eqPly/tracker.cpp.