Equalizer 1.0

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 37 of file eqPly/tracker.h.


Member Function Documentation

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

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

Definition at line 52 of file eqPly/tracker.cpp.

References EQERROR.

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

Checks if the tracker is running.

Returns:
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.

Parameters:
matrixthe sensor to object matrix.

Definition at line 71 of file eqPly/tracker.h.

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

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

Parameters:
matrixthe world to emitter matrix.

Definition at line 62 of file eqPly/tracker.h.

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.

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

Definition at line 124 of file eqPly/tracker.cpp.

References EQERROR.


The documentation for this class was generated from the following files:
Generated on Sun May 8 2011 19:11:11 for Equalizer 1.0 by  doxygen 1.7.3