OutputHandler Class Reference

List of all members.

Detailed Description

This class requests continual data updates from the server and prints them out.


Public Member Functions

void handleBatteryInfo (ArNetPacket *packet)
 This callback is called when an update on the battery configuration changes.
void handleOutput (ArNetPacket *packet)
 This callback is called when an update on general robot state arrives.
void handleOutputNumbers (ArNetPacket *packet)
 This callback is called when an update on general robot state arrives.
void handleOutputStrings (ArNetPacket *packet)
 This callback is called when an update on general robot state arrives.
void handlePhysicalInfo (ArNetPacket *packet)
 This is called when the physical robot information comes back.
void handleTemperatureInfo (ArNetPacket *packet)
 This callback is called when an update on the temperature information changes.
 OutputHandler (ArClientBase *client)
virtual ~OutputHandler (void)

Protected Attributes

ArClientBasemyClient
bool myGotBatteryInfo
 Don't print any information until we get the battery info.
bool myNeedToPrintHeader
 A header for the columns in the data printout is sometimes printed.
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandleBatteryInfoCB
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandleOutputCB
 These functor objects are given to the client to receive updates when they arrive from the server.
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandleOutputNumbersCB
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandleOutputStringsCB
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandlePhysicalInfoCB
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandleTemperatureInfoCB
double myLatVel
char myMode [256]
double myRotVel
char myStatus [256]
char myTemperature
double myTh
double myVel
double myVoltage
bool myVoltageIsStateOfCharge
double myX
 The results from the data update are stored in these variables.
double myY


Constructor & Destructor Documentation

OutputHandler::OutputHandler ( ArClientBase client  ) 

OutputHandler::~OutputHandler ( void   )  [virtual]


Member Function Documentation

void OutputHandler::handleBatteryInfo ( ArNetPacket packet  ) 

This callback is called when an update on the battery configuration changes.

void OutputHandler::handleOutput ( ArNetPacket packet  ) 

This callback is called when an update on general robot state arrives.

void OutputHandler::handleOutputNumbers ( ArNetPacket packet  ) 

This callback is called when an update on general robot state arrives.

void OutputHandler::handleOutputStrings ( ArNetPacket packet  ) 

This callback is called when an update on general robot state arrives.

void OutputHandler::handlePhysicalInfo ( ArNetPacket packet  ) 

This is called when the physical robot information comes back.

void OutputHandler::handleTemperatureInfo ( ArNetPacket packet  ) 

This callback is called when an update on the temperature information changes.


Member Data Documentation

ArClientBase* OutputHandler::myClient [protected]

bool OutputHandler::myGotBatteryInfo [protected]

Don't print any information until we get the battery info.

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandleBatteryInfoCB [protected]

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandleOutputCB [protected]

These functor objects are given to the client to receive updates when they arrive from the server.

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandleOutputNumbersCB [protected]

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandleOutputStringsCB [protected]

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandlePhysicalInfoCB [protected]

ArFunctor1C<OutputHandler, ArNetPacket *> OutputHandler::myHandleTemperatureInfoCB [protected]

double OutputHandler::myLatVel [protected]

char OutputHandler::myMode[256] [protected]

bool OutputHandler::myNeedToPrintHeader [protected]

A header for the columns in the data printout is sometimes printed.

double OutputHandler::myRotVel [protected]

char OutputHandler::myStatus[256] [protected]

char OutputHandler::myTemperature [protected]

double OutputHandler::myTh [protected]

double OutputHandler::myVel [protected]

double OutputHandler::myVoltage [protected]

bool OutputHandler::myVoltageIsStateOfCharge [protected]

double OutputHandler::myX [protected]

The results from the data update are stored in these variables.

double OutputHandler::myY [protected]


The documentation for this class was generated from the following file:
Generated on Fri Jul 31 12:37:30 2009 for ArNetworking by  doxygen 1.4.7