Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

ArDataLogger Class Reference

This class will log data, but you have to use it through an ArConfig right now. More...

#include <ArDataLogger.h>

List of all members.

Public Member Functions

void addString (const char *name, ArTypes::UByte2 maxLen, ArFunctor2< char *, ArTypes::UByte2 > *functor)
 Adds a string to the list of options in the raw format.
void addStringBool (const char *name, ArTypes::UByte2 maxLen, ArRetFunctor< bool > *functor, const char *format="%s")
 Adds a bool to the list of options in the helped way.
void addStringDouble (const char *name, ArTypes::UByte2 maxLen, ArRetFunctor< double > *functor, const char *format="%g")
 Adds a double to the list of options in the helped way.
void addStringInt (const char *name, ArTypes::UByte2 maxLen, ArRetFunctor< int > *functor, const char *format="%d")
 Adds an int to the list of options in the helped way.
void addStringString (const char *name, ArTypes::UByte2 maxLen, ArRetFunctor< const char * > *functor, const char *format="%s")
 Adds a string to the list of options in the helped way.
void addToConfig (ArConfig *config)
 ArDataLogger (ArRobot *robot, const char *fileName=NULL)

Protected Member Functions

void connectCallback (void)
bool processFile (char *errorBuffer, size_t errorBufferLen)
void userTask (void)

Protected Attributes

bool myAddedToConfig
bool myAddToConfigAtConnect
int myAnalogCount
bool * myAnalogEnabled
int myAnalogVoltageCount
bool * myAnalogVoltageEnabled
ArConfigmyConfig
char myConfigFileName [512]
bool myConfigLogging
int myConfigLogInterval
ArFunctorC< ArDataLoggermyConnectCB
int myDigInCount
bool * myDigInEnabled
int myDigOutCount
bool * myDigOutEnabled
FILE * myFile
ArTime myLastLogged
bool myLogCorrectedEncoderPose
bool myLogEncoderPose
bool myLogEncoders
bool myLogFlags
bool myLogLeftStalled
bool myLogLeftVel
bool myLogPose
bool myLogRightStalled
bool myLogRightVel
bool myLogRotVel
bool myLogStallBits
bool myLogTransVel
bool myLogVoltage
ArTypes::UByte2 myMaxMaxLength
ArMutex myMutex
char myOpenedFileName [512]
std::string myPermanentFileName
ArRetFunctor2C< bool, ArDataLogger,
char *, size_t > 
myProcessFileCB
ArRobotmyRobot
std::vector< ArStringInfoHolder * > myStrings
int myStringsCount
bool * myStringsEnabled
ArFunctorC< ArDataLoggermyUserTaskCB


Detailed Description

This class will log data, but you have to use it through an ArConfig right now.

This class doesn't log anything by default, but can be set up to log all sorts of data.

Definition at line 43 of file ArDataLogger.h.


Constructor & Destructor Documentation

ArDataLogger::ArDataLogger ArRobot robot,
const char *  fileName = NULL
 

Parameters:
robot the robot to log information from
fileName if NULL then the file name is detered by the config, if not NULL then the file name data is put into, if the filename is used then the data log file is opened in append mode not in write mode, so it'll append to whats there (if you want to seperate this by runs you need to do it on your own by removing or moving the file)

Definition at line 44 of file ArDataLogger.cpp.

References ArRobot::addUserTask(), and ArRobot::requestIOPackets().


The documentation for this class was generated from the following files:
Generated on Wed Oct 19 12:56:45 2005 for Aria by  doxygen 1.4.0