eqPly::Tracker Class Reference

List of all members.

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::Matrix4fgetMatrix () const
 Gets the transformation matrix with the position and orientation data.

Detailed Description

Definition at line 25 of file tracker.h.


Member Function Documentation

bool eqPly::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.

Parameters:
port the used serial port.
Returns:
true if the tracker works correctly, false otherwise.

Definition at line 43 of file tracker.cpp.

References EQERROR.

void eqPly::Tracker::setWorldToEmitter ( const eq::Matrix4f matrix  )  [inline]

Set the matrix defining the transformation from world coordinates to emitter coordinates.

Parameters:
matrix the world to emitter matrix.

Definition at line 50 of file 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.

Parameters:
matrix the sensor to object matrix.

Definition at line 59 of file tracker.h.

bool eqPly::Tracker::isRunning (  )  const [inline]

Checks if the tracker is running.

Returns:
true if the tracker is ready, false otherwise.

Definition at line 68 of file tracker.h.

bool eqPly::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.

Returns:
true if the data transfer is successful, false otherwise.

Definition at line 115 of file tracker.cpp.

References EQERROR.

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,.

Returns:
the transformation matrix.

Definition at line 89 of file tracker.h.


The documentation for this class was generated from the following files:
Generated on Sat Feb 6 13:15:41 2010 for Equalizer 0.9.1 by  doxygen 1.6.1