#include <ArDataLogger.h>
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 |
| ArConfig * | myConfig |
| char | myConfigFileName [512] |
| bool | myConfigLogging |
| int | myConfigLogInterval |
| ArFunctorC< ArDataLogger > | myConnectCB |
| 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 |
| ArRobot * | myRobot |
| std::vector< ArStringInfoHolder * > | myStrings |
| int | myStringsCount |
| bool * | myStringsEnabled |
| ArFunctorC< ArDataLogger > | myUserTaskCB |
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.
|
||||||||||||
|
Definition at line 44 of file ArDataLogger.cpp. References ArRobot::addUserTask(), and ArRobot::requestIOPackets(). |
1.4.0