#include "Tools/Debugging/DebugKeyTable.h"
#include "Tools/MessageQueue/OutMessage.h"
#include "Tools/Debugging/DebugRequest.h"
#include "Tools/Debugging/DebugDataTable.h"
#include <iostream>
Include dependency graph for Debugging.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | INFO(key, type, format, expression) |
| A macro for sending debug messages depending on a debug key. | |
| #define | OUTPUT(type, format, expression) |
| A macro for sending debug messages. | |
| #define | DEBUG_RESPONSE(description, expression) |
| #define | NOT_POLLABLE_DEBUG_RESPONSE(description, expression) |
| #define | DEBUG_RESPONSE_NOT(description, expression) |
| #define | WATCH(key, type, format, expression) INFO(key,type,format,expression); |
| A macro for sending debug messages that differs between Windows and Aperios. | |
| #define | DEBUG_CHECK_CRASH { if (SystemCall::getCurrentSystemTime () - entryTime > 2000) {std::cout << "breakpoint in " << __FILE__ << ":" << __LINE__ << "; \n was executed more than 2 seconds\n"; while (true); }; }; |
Functions | |
| void | initDebugging (OutMessage *queue, DebugKeyTable *table, DebugRequestTable *debugRequestTable) |
| Sets a pointer to an OutMessage and to a DebugKeyTable to be used by the macros. | |
| OutMessage & | getDebugOut () |
| Returns a reference to a process wide OutMessage. | |
| DebugKeyTable & | getDebugKeyTable () |
| Returns a reference to a process wide debug key table. | |
| DebugRequestTable & | getDebugRequestTable () |
| Returns a reference to a process wide debug request table. | |
Definition in file Debugging.h.
|
|
Value: if (getDebugKeyTable().isActive(DebugKeyTable::key)) {\ getDebugOut().format << expression;\ getDebugOut().finishMessage(type);\ }\
|
|
|
|
Value: {\
if(getDebugRequestTable().poll && getDebugRequestTable().notYetPolled(description)) \
{ \
OUTPUT(idDebugResponse, text, description << \
int(getDebugRequestTable().isActive(description) && !getDebugRequestTable().once(description))); \
} \
if(getDebugRequestTable().isActive(description)) \
{ \
if(getDebugRequestTable().once(description)) \
getDebugRequestTable().disable(description); \
expression \
} \
}
Definition at line 96 of file Debugging.h. Referenced by GT2005GoalRecognizer::analyzeGoalpost(), GT2005SelfLocator::calcDistributionValidityByStandardDeviation(), GT2005SelfLocator::calcPose(), GT2005TeamBallLocator::calcRepresentativeParticleContainer(), GT2005ConfigurationSymbols::computeKickoffRole(), GT2005SensorDataProcessor::detectSwitches(), AngleSymbols::drawAngles(), GT2005StrategySymbols::estimateTimeToReachBall(), GT2005TeamBallLocator::execute(), SlamSelfLocator::execute(), OdometrySelfLocator::execute(), GT2005SelfLocator::execute(), GT2005RobotStateDetector::execute(), GT2005MotionControl::execute(), GT2005LEDControl::execute(), GT2005ImageProcessor::execute(), GT2005HeadControl::execute(), GT2005CollisionDetector::execute(), GTXabsl2EngineExecutor::executeEngine(), GT2005SampleTemplateGenerator::generateTemplates(), GT2005GoalRecognizer::interpretResults(), Motion::main(), Debug::main(), Cognition::main(), GT2005BehaviorControl::postExecute(), Process::processMain(), KickSelectionSymbols::retrieveKick(), GT2005ImageProcessor::scan(), GT2005GoalRecognizer::scanCrossBar(), SlamBeaconDetector::scanForFlagCharacterization(), AngleSymbols::setTestAngle(), TestSymbols::update(), GT2005StrategySymbols::update(), and GT2005ConfigurationSymbols::update(). |
|
|
Value: {\
if(getDebugRequestTable().isActive(description)) \
{ \
if(getDebugRequestTable().once(description)) \
getDebugRequestTable().disable(description); \
expression \
} \
}
Definition at line 111 of file Debugging.h. |
|
|
Value: {\
if(getDebugRequestTable().poll && getDebugRequestTable().notYetPolled(description)) \
{ \
OUTPUT(idDebugResponse, text, description << \
int(getDebugRequestTable().isActive(description) && !getDebugRequestTable().once(description))); \
} \
if(! (getDebugRequestTable().isActive(description))) \
{ \
if(getDebugRequestTable().once(description)) \
getDebugRequestTable().disable(description); \
expression \
} \
}
Definition at line 121 of file Debugging.h. Referenced by GT2005StrategySymbols::computeRole(), GT2005TeamBallLocator::execute(), SlamSelfLocator::execute(), GT2005LEDControl::execute(), VLCImageProcessor::execute(), GT2005ImageProcessor::execute(), VLCImageProcessor::scan(), and GT2005ImageProcessor::scan(). |
|
|
A macro for sending debug messages that differs between Windows and Aperios. The parameters equal to the parameters if the INFO macro. Different from INFO, the output is sent automatically on the WIN32 platform Definition at line 154 of file Debugging.h. Referenced by Cognition::main(). |
|
|
Definition at line 161 of file Debugging.h. |
|
||||||||||||||||
|
Sets a pointer to an OutMessage and to a DebugKeyTable to be used by the macros.
Definition at line 21 of file Debugging.cpp. References debugKeyTable, debugOut, and debugRequestTable. Referenced by Process::Process(), and Process::processMain(). |
|
|
Returns a reference to a process wide OutMessage.
Definition at line 28 of file Debugging.cpp. References debugOut. Referenced by Process::processMain(), GTXabsl2EngineExecutor::sendDebugMessage(), GT2005WalkingEngine::sendPolys(), and GT2005WalkingEngine::streamDebugData(). |
|
|
Returns a reference to a process wide debug key table.
Definition at line 33 of file Debugging.cpp. References debugKeyTable. Referenced by GTXabsl2EngineExecutor::executeEngine(). |
|
|
Returns a reference to a process wide debug request table.
Definition at line 38 of file Debugging.cpp. References debugRequestTable. |
1.3.6