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:
Public Member Functions | |
| ARTDataTrackerModule () | |
| virtual | ~ARTDataTrackerModule () |
| virtual Node * | createNode (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 |
| ARTDataTrackerChomp * | DataTracker |
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 | ( | ) |
| 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::MeasuretargetRecord & | MeasuretargetRecordTemp | ) | [virtual] |
Definition at line 424 of file ARTDataTrackerModule.cxx.
References ot::MathUtils::matrixToQuaternion(), ot::ARTDataTrackerChomp::MeasuretargetRecord::orientation, and ot::ARTDataTrackerChomp::MeasuretargetRecord::rotationMatrix.
| void ot::ARTDataTrackerModule::convert | ( | ARTDataTrackerChomp::FlystickRecord & | FlystickRecordTemp | ) | [virtual] |
Definition at line 399 of file ARTDataTrackerModule.cxx.
References ot::MathUtils::matrixToQuaternion(), ot::ARTDataTrackerChomp::FlystickRecord::orientation, and ot::ARTDataTrackerChomp::FlystickRecord::rotationMatrix.
| 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
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::run | ( | ) | [protected, virtual] |
Mainloop.
Reimplemented from ot::ThreadModule.
Definition at line 158 of file ARTDataTrackerModule.cxx.
References bodyID, ot::ARTDataTrackerChomp::chomp(), convert(), DataTracker, ot::ARTDataTrackerChomp::getBodyRecord(), ot::ARTDataTrackerChomp::getFlystickRecord(), ot::ARTDataTrackerChomp::getMarkerRecord(), ot::ARTDataTrackerChomp::getMeasuretargetRecord(), ot::ThreadModule::lock(), port, receiveBuffer, receiveBufferSize, socket, sources, ot::Module::stop(), 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 124 of file ARTDataTrackerModule.h.
Referenced by init(), run(), and ~ARTDataTrackerModule().
int ot::ARTDataTrackerModule::port [protected] |
ACE_SOCK_Dgram* ot::ARTDataTrackerModule::socket [protected] |
NodeVector ot::ARTDataTrackerModule::sources [protected] |
list of ARTDataTrackerSource nodes in the tree
Definition at line 101 of file ARTDataTrackerModule.h.
Referenced by createNode(), pushEvent(), run(), start(), and ~ARTDataTrackerModule().
int ot::ARTDataTrackerModule::stop [protected] |
The documentation for this class was generated from the following files: