Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

OutputHandler Class Reference

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

List of all members.

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 handlePhysicalInfo (ArNetPacket *packet)
 This is called when the physical robot information comes back.
 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
ArFunctor1C< OutputHandler,
ArNetPacket * > 
myHandlePhysicalInfoCB
char myMode [32]
double myRotVel
char myStatus [256]
double myTh
double myVel
double myVoltage
double myX
double myY


Detailed Description

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

Definition at line 256 of file clientDemo.cpp.


Constructor & Destructor Documentation

OutputHandler::OutputHandler ArClientBase client  ) 
 

Definition at line 300 of file clientDemo.cpp.

References ArClientBase::addHandler(), client, myClient, myHandleBatteryInfoCB, myHandleOutputCB, myHandlePhysicalInfoCB, ArClientBase::request(), and ArClientBase::requestOnce().

OutputHandler::~OutputHandler void   )  [virtual]
 

Definition at line 322 of file clientDemo.cpp.

References myClient, and ArClientBase::requestStop().


Member Function Documentation

void OutputHandler::handleBatteryInfo ArNetPacket packet  ) 
 

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

Definition at line 361 of file clientDemo.cpp.

References myGotBatteryInfo, and myNeedToPrintHeader.

void OutputHandler::handleOutput ArNetPacket packet  ) 
 

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

Definition at line 328 of file clientDemo.cpp.

References myGotBatteryInfo, myMode, myNeedToPrintHeader, myRotVel, myStatus, myTh, myVel, myVoltage, myX, and myY.

void OutputHandler::handlePhysicalInfo ArNetPacket packet  ) 
 

This is called when the physical robot information comes back.

Definition at line 375 of file clientDemo.cpp.


Member Data Documentation

ArClientBase* OutputHandler::myClient [protected]
 

Definition at line 283 of file clientDemo.cpp.

Referenced by OutputHandler(), and ~OutputHandler().

bool OutputHandler::myGotBatteryInfo [protected]
 

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

Definition at line 297 of file clientDemo.cpp.

Referenced by handleBatteryInfo(), and handleOutput().

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

Definition at line 290 of file clientDemo.cpp.

Referenced by OutputHandler().

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

Definition at line 289 of file clientDemo.cpp.

Referenced by OutputHandler().

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

Definition at line 291 of file clientDemo.cpp.

Referenced by OutputHandler().

char OutputHandler::myMode[32] [protected]
 

Definition at line 281 of file clientDemo.cpp.

Referenced by handleOutput().

bool OutputHandler::myNeedToPrintHeader [protected]
 

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

Definition at line 295 of file clientDemo.cpp.

Referenced by handleBatteryInfo(), and handleOutput().

double OutputHandler::myRotVel [protected]
 

Definition at line 278 of file clientDemo.cpp.

Referenced by handleOutput().

char OutputHandler::myStatus[256] [protected]
 

Definition at line 280 of file clientDemo.cpp.

Referenced by handleOutput().

double OutputHandler::myTh [protected]
 

Definition at line 276 of file clientDemo.cpp.

Referenced by handleOutput().

double OutputHandler::myVel [protected]
 

Definition at line 277 of file clientDemo.cpp.

Referenced by handleOutput().

double OutputHandler::myVoltage [protected]
 

Definition at line 279 of file clientDemo.cpp.

Referenced by handleOutput().

double OutputHandler::myX [protected]
 

Definition at line 274 of file clientDemo.cpp.

Referenced by handleOutput().

double OutputHandler::myY [protected]
 

Definition at line 275 of file clientDemo.cpp.

Referenced by handleOutput().


The documentation for this class was generated from the following file:
Generated on Tue Feb 20 10:51:52 2007 for ArNetworking by  doxygen 1.4.0