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

Debug Class Reference

A process for collection and distribution of debug messages. More...

#include <Debug.h>

Inheritance diagram for Debug:

Inheritance graph
[legend]
Collaboration diagram for Debug:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Debug ()
 Constructor.

 ~Debug ()
 Destructor.

int main ()
 The main function of the process.

virtual void init ()
 Is called before the first main().

virtual bool handleMessage (InMessage &message)
 Is called for every incoming debug message.


Public Attributes

QueueFillRequest::QueueFillMode mode
 The QueueFillMode for the outgoing Queue.

unsigned long saveOrSendTime
 The time when the outgoing queue is written to the stick or allowed to be accessed via wlan.


Private Member Functions

 DEBUG_RECEIVER (Cognition)
 DEBUG_RECEIVER (Motion)
 DEBUG_SENDER (Cognition)
 DEBUG_SENDER (Motion)

Private Attributes

 EXTERNAL_DEBUGGING
bool messageWasReceived
 If true, a message was received from the WLan or OVirtualRobotComm.


Detailed Description

A process for collection and distribution of debug messages.

All messages from the processes to the PC are collected here and all messages from the PC to the processes are distributed by the Debug process.

Author:
Martin Lötzsch

Definition at line 27 of file Debug.h.


Constructor & Destructor Documentation

Debug::Debug  ) 
 

Constructor.

Definition at line 15 of file Debug.cpp.

References Process::debugOut, SystemCall::getRobotDesign(), INIT_DEBUG_RECEIVER, INIT_DEBUG_SENDER, INIT_EXTERNAL_DEBUGGING, and MessageQueue::setSize().

Here is the call graph for this function:

Debug::~Debug  ) 
 

Destructor.

Definition at line 45 of file Debug.cpp.


Member Function Documentation

Debug::DEBUG_RECEIVER Cognition   )  [private]
 

Debug::DEBUG_RECEIVER Motion   )  [private]
 

Debug::DEBUG_SENDER Cognition   )  [private]
 

Debug::DEBUG_SENDER Motion   )  [private]
 

int Debug::main  )  [virtual]
 

The main function of the process.

Implements Process.

Definition at line 49 of file Debug.cpp.

References MessageQueue::clear(), debugOut, Process::debugOut, endl(), SystemCall::getCurrentSystemTime(), getRobotConfiguration(), idText, INFO, MessageQueue::isEmpty(), messageWasReceived, MessageQueue::removeRepetitions(), and saveOrSendTime.

Here is the call graph for this function:

void Debug::init  )  [virtual]
 

Is called before the first main().

Reimplemented from Process.

Definition at line 114 of file Debug.cpp.

References InStream< InFile, InBinary >::eof(), InFile::exists(), MessageQueue::handleAllMessages(), INIT_EXTERNAL_DEBUGGING_HANDLER, and messageWasReceived.

Here is the call graph for this function:

bool Debug::handleMessage InMessage message  )  [virtual]
 

Is called for every incoming debug message.

Parameters:
message the message to handle
Returns:
if the message was handled

Reimplemented from Process.

Definition at line 129 of file Debug.cpp.

References InMessage::bin, SystemCall::getCurrentSystemTime(), InMessage::getMessageID(), Process::handleMessage(), idBodyOffsets, idCameraParameters, idColorTable64, idColorTableTSL, idDebugKeyTable, idFourierCoefficients, idFreezeRequest, idGameControlData, idGameSpeed, idGenericDebugData, idGlobalGameControlData, idGT2004BallLocatorData, idGT2004EvolutionRequest, idGT2004Parameters, idHeadControlMode, idHeadMotionRequest, idImage, idInvKinWalkingParameters, idJointDataSequence, idJoystickData, idJPEGImage, idKickSelectionTable, idLEDRequest, idLinesSelfLocatorParameters, idLowResImage, idMotionControlSlowMotion, idMotionNet, idMotionRequest, idOdometryData, idOdometryScale, idOracledWorldState, idPercepts, idPIDData, idQueueFillRequest, idSensorData, idSolutionRequest, idSoundRequest, idSpecialPercept, idTacticEntryArray, idWorldState, idXabsl2DebugRequest, idXabsl2IntermediateCode, idYetAnotherInvKinParams, idYetAnotherInvKinPaws, messageWasReceived, QueueFillRequest::mode, saveOrSendTime, and QueueFillRequest::seconds.

Here is the call graph for this function:


Member Data Documentation

Debug::EXTERNAL_DEBUGGING [private]
 

Definition at line 31 of file Debug.h.

QueueFillRequest::QueueFillMode Debug::mode
 

The QueueFillMode for the outgoing Queue.

Definition at line 61 of file Debug.h.

unsigned long Debug::saveOrSendTime
 

The time when the outgoing queue is written to the stick or allowed to be accessed via wlan.

Definition at line 66 of file Debug.h.

Referenced by handleMessage(), and main().

bool Debug::messageWasReceived [private]
 

If true, a message was received from the WLan or OVirtualRobotComm.

Definition at line 70 of file Debug.h.

Referenced by handleMessage(), init(), and main().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:05:40 2004 for GT2004 by doxygen 1.3.6