OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::ARTDataTrackerModule Class Reference
[Device Input Classes]

The module and factory to drive the ARTDataTrackersource nodes. More...

#include <ARTDataTrackerModule.h>

Inheritance diagram for ot::ARTDataTrackerModule:

Inheritance graph
[legend]
Collaboration diagram for ot::ARTDataTrackerModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ARTDataTrackerModule ()
virtual ~ARTDataTrackerModule ()
virtual NodecreateNode (const std::string &name, StringTable &attributes)
virtual void start ()
virtual void convert (ARTDataTrackerChomp::BodyRecord &BodyRecordTemp)
virtual void convert (ARTDataTrackerChomp::FlystickRecord &FlystickRecordTemp)
virtual void convert (ARTDataTrackerChomp::MeasuretargetRecord &MeasuretargetRecordTemp)
virtual void close ()
virtual void pushEvent ()
virtual void init (StringTable &attributes, ConfigNode *localTree)

Public Attributes

int bodyID
int receiveBufferSize
char * receiveBuffer
ARTDataTrackerChompDataTracker

Protected Member Functions

void run ()

Protected Attributes

NodeVector sources
int port
int stop
ACE_SOCK_Dgram * socket

Detailed Description

The module and factory to drive the ARTDataTrackersource nodes.

It constructs ARTDataTrackerSource nodes via the NodeFactory interface and pushes events into the tracker tree according to the nodes configuration.

Author:
Christopher Schmidt

Definition at line 94 of file ARTDataTrackerModule.h.


Constructor & Destructor Documentation

ot::ARTDataTrackerModule::ARTDataTrackerModule (  ) 

constructor method.

Definition at line 72 of file ARTDataTrackerModule.cxx.

ot::ARTDataTrackerModule::~ARTDataTrackerModule (  )  [virtual]

Destructor method, clears nodes member.

Definition at line 80 of file ARTDataTrackerModule.cxx.

References DataTracker, and sources.


Member Function Documentation

void ot::ARTDataTrackerModule::close (  )  [virtual]

Close.

Reimplemented from ot::ThreadModule.

Definition at line 149 of file ARTDataTrackerModule.cxx.

References ot::ThreadModule::lock(), ot::Module::stop(), and ot::ThreadModule::unlock().

void ot::ARTDataTrackerModule::convert ( ARTDataTrackerChomp::BodyRecord BodyRecordTemp  )  [virtual]

Convert the Data from the Arrays to the Quaternion Format.

Definition at line 373 of file ARTDataTrackerModule.cxx.

References ot::MathUtils::matrixToQuaternion(), ot::ARTDataTrackerChomp::BodyRecord::orientation, and ot::ARTDataTrackerChomp::BodyRecord::rotationMatrix.

Referenced by run().

Node * ot::ARTDataTrackerModule::createNode ( const std::string &  name,
StringTable attributes 
) [virtual]

This method is called to construct a new Node.

It compares name to the ARTDataTrackerSource element name, and if it matches creates a new ARTDataTrackerSource node.

Parameters:
name reference to string containing element name refenrence to StringMap containing attribute values
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

Implements ot::NodeFactory.

Definition at line 90 of file ARTDataTrackerModule.cxx.

References ot::StringTable::get(), sources, and ot::Module::stop().

void ot::ARTDataTrackerModule::init ( StringTable attributes,
ConfigNode localTree 
) [virtual]

initializes the ARTDataTrackerModule.

Parameters:
attributes StringMap of elements attribute values. Should be possibly , but is not for convenience.
localTree pointer to root of configuration nodes tree

Reimplemented from ot::Module.

Definition at line 477 of file ARTDataTrackerModule.cxx.

References DataTracker, ot::StringTable::get(), ot::Module::init(), and port.

void ot::ARTDataTrackerModule::pushEvent (  )  [virtual]

pushes events into the tracker tree.

Checks all source nodes for new events and pushes them into the tracker tree.

Reimplemented from ot::Module.

Definition at line 455 of file ARTDataTrackerModule.cxx.

References ot::Module::isInitialized(), ot::ThreadModule::lock(), sources, and ot::ThreadModule::unlock().

void ot::ARTDataTrackerModule::start (  )  [virtual]

This method is called after initialisation is finished and before the main loop is started.

Reimplemented from ot::ThreadModule.

Definition at line 140 of file ARTDataTrackerModule.cxx.

References ot::Module::isInitialized(), sources, and ot::ThreadModule::start().


Member Data Documentation

Definition at line 120 of file ARTDataTrackerModule.h.

Referenced by run().

port number

Definition at line 103 of file ARTDataTrackerModule.h.

Referenced by init(), and run().

Definition at line 122 of file ARTDataTrackerModule.h.

Referenced by run().

Definition at line 121 of file ARTDataTrackerModule.h.

Referenced by run().

ACE_SOCK_Dgram* ot::ARTDataTrackerModule::socket [protected]

pointer to socket class

Definition at line 107 of file ARTDataTrackerModule.h.

Referenced by run().

list of ARTDataTrackerSource nodes in the tree

Definition at line 101 of file ARTDataTrackerModule.h.

Referenced by createNode(), pushEvent(), run(), start(), and ~ARTDataTrackerModule().

stop flag

Definition at line 105 of file ARTDataTrackerModule.h.


The documentation for this class was generated from the following files:

copyright (c) 2006 Graz University of Technology