Debug Class Reference

#include <Debug.h>

Inheritance diagram for Debug:

Process PlatformProcess MessageHandler List of all members.

Public Member Functions

 Debug ()
 ~Debug ()
int main ()
virtual void init ()
virtual bool handleMessage (InMessage &message)

Public Attributes

QueueFillRequest::QueueFillMode mode
unsigned long saveOrSendTime

Private Member Functions

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

Private Attributes

 EXTERNAL_DEBUGGING
bool messageWasReceived

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::debugIn, Process::debugOut, RobotDesign::ERS7, SystemCall::getRobotDesign(), and MessageQueue::setSize().

Debug::~Debug (  ) 

Destructor

Definition at line 45 of file Debug.cpp.


Member Function Documentation

Debug::DEBUG_RECEIVER ( Motion   )  [private]

Debug::DEBUG_RECEIVER ( Cognition   )  [private]

Debug::DEBUG_SENDER ( Motion   )  [private]

Debug::DEBUG_SENDER ( Cognition   )  [private]

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, mode, saveOrSendTime, and QueueFillRequest::seconds.

void Debug::init (  )  [virtual]

Is called before the first main()

Reimplemented from Process.

Definition at line 114 of file Debug.cpp.

References Process::debugIn, InStream< S, R >::eof(), InFile::exists(), MessageQueue::handleAllMessages(), and messageWasReceived.

int Debug::main (  )  [virtual]

The main function of the process

Implements Process.

Definition at line 49 of file Debug.cpp.

References MessageQueue::clear(), QueueFillRequest::collectNSeconds, Process::debugOut, endl(), SystemCall::getCurrentSystemTime(), SystemCall::getFreeMem(), SystemCall::getRemainingPower(), getRobotConfiguration(), idText, QueueFillRequest::immediateReadWrite, INFO, MessageQueue::isEmpty(), messageWasReceived, mode, QueueFillRequest::overwriteOlder, QueueFillRequest::rejectAll, MessageQueue::removeRepetitions(), saveOrSendTime, text, QueueFillRequest::toStickImmediately, and QueueFillRequest::toStickNSeconds.


Member Data Documentation

Debug::EXTERNAL_DEBUGGING [private]

Definition at line 31 of file Debug.h.

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().

QueueFillRequest::QueueFillMode Debug::mode

The QueueFillMode for the outgoing Queue

Definition at line 61 of file Debug.h.

Referenced by handleMessage(), and main().

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().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:27:35 2006 for DT2005.panorama by  doxygen 1.4.7