ArCompassConnector Class Reference

#include <ArTCM2.h>

List of all members.


Detailed Description

Use this class to create an instance of a TCM2 subclass and connect to the device based on program command line options. This allows the user of a program to select a different kind of compass configuration (for example, if the compass is connected to a computer serial port, use ArTCMCompassDirect instead of the normal ArTCMCompassRobot.)

The following command-line arguments are checked:


Public Member Functions

 ArCompassConnector (ArArgumentParser *argParser)
bool connect (ArTCM2 *) const
ArTCM2create (ArRobot *robot)

Protected Types

enum  DeviceType { Robot, SerialTCM, None }

Protected Member Functions

void logOptions ()
bool parseArgs ()

Protected Attributes

ArArgumentParsermyArgParser
DeviceType myDeviceType
ArFunctorC< ArCompassConnectormyLogArgsCallback
ArRetFunctorC< bool, ArCompassConnectormyParseArgsCallback
ArRobotmyRobot
const char * mySerialPort
ArFunctormySerialTCMReadFunctor


The documentation for this class was generated from the following file:
Generated on Thu Aug 6 09:39:34 2009 for Aria by  doxygen 1.5.1