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

# Tools/MessageQueue/MessageIDs.h File Reference

Declaration of ids for debug messages. More...

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

Go to the source code of this file.

## Defines
#define | SEND_IMAGE(i, cm) static_cast<Image&>(i) << static_cast<CameraMatrix&>(cm)
| Composes the idImage message into a message queue.
#define | RECEIVE_IMAGE(i, cm) static_cast<Image&>(i) >> static_cast<CameraMatrix&>(cm)
| Receives the idImage message from a message queue.
#define | SEND_PERCEPTS(rp, cm, ci, ballp, lmp, lnsp, ep, plp, op, psdp, cp)
| Composes the idPercepts message into a message queue.
#define | RECEIVE_PERCEPTS(rp, cm, ci, ballp, lmp, lnsp, ep, plp, op, psdp, cp)
| Receives the idPercepts message from a message queue.
#define | SEND_WORLD_STATE(rp, bp, ppc, om, rs, cm, ci)
| Composes the idWorldState message into a message queue.
#define | RECEIVE_WORLDSTATE(rp, bp, ppc, om, rs, cm, ci)
| Receives the idWorldState message from a message queue.
## Enumerations
enum | MessageID { undefined = 0, idText, idSensorData = 3, idPercepts = 8, idSpecialPercept, idWorldState, idOracledWorldState, idGTCamWorldState, idRemoteCamWorldState, idLowResImage = 2, idJPEGImage = 37, idImage, idDebugImage, idDebugColorClassImage, idDebugKeyTable, idQueueFillRequest, idGenericDebugData, idSolutionRequest, idDebugDrawing, idDebugDrawing2, idDebugDrawingFinished, idStopwatch, idHistogram, idSyncTimestampRobot, idSyncTimestampRemoteCam, idMotionRequest, idOdometryData, idJointData, idJointDataSequence, idHeadMotionRequest, idHeadControlMode, idFourierCoefficients, idLEDRequest, idInvKinWalkingParameters, idYetAnotherInvKinParams, idYetAnotherInvKinPaws, idMotionInfo, idBodyPosture, idPIDData, idJoystickData, idSoundRequest, idGT2004Parameters, idGT2004EvolutionRequest, idMotionNet, idOdometryScale, idMotionRatingBehaviorMessage, idCameraParameters, idColorTable64, idGameSpeed, idMotionControlSlowMotion, idBodyOffsets, idImageProcessorParameters, idXabsl2DebugRequest, idXabsl2DebugMessage, idXabsl2IntermediateCode, idKickSelectionTable, idKickRecord, idGlobalGameControlData, idGameControlData, idBallPercept, idCollisionPercept, idLandmarksPercept, idLinesPercept, idEdgesPercept, idObstaclesPercept, idPlayersPercept, idColorTableCuboids, idColorTableReferenceColor, idColorTableTSL, idRobotPose, idBallModel, idLinesSelfLocatorParameters, idGT2004BallLocatorData, idDDDSelfLocatorParameters, idPerceptOracle = 120, idDebugDrawing3, idDebugRequest, idDebugResponse, idStreamSpecification, idATH2005SLInfo, idBehaviorEvolutionPopulation, idBehaviorEvolutionParameters, idBehaviorEvolutionCurrentIndividual, idMessageForRobotControl, idModuleSolutionTable, idDrawingManager, idDebugDataResponse, idDebugDataChangeRequest, idProcessBegin, idProcessFinished, idJPEGImage2, idGT2005BallLocator1 = 150, idGT2005BallLocator2, idGT2005TeamBallLocator, idComboBallLocator, idGT2005Request, idGT2005DebugData, idGTCamKalmanBallFilter, idMSHBallLocatorEvolution, idDebugGrayScaleImage, idTestFun, idDebugJPEGImage, idDebugJPEGImage2, idCameraMatrix, numOfMessageIDs }
| IDs for debug messages. More...

## Detailed Description

Declaration of ids for debug messages.

Author:
  Martin Lötzsch

Definition in file MessageIDs.h.

## Define Documentation

#define SEND_IMAGE | ( | i,
|  | cm |  | ) | static_cast<Image&>(i) << static_cast<CameraMatrix&>(cm)

| Composes the idImage message into a message queue. Definition at line 284 of file MessageIDs.h. Referenced by Cognition::main().

#define RECEIVE_IMAGE | ( | i,
|  | cm |  | ) | static_cast<Image&>(i) >> static_cast<CameraMatrix&>(cm)

| Receives the idImage message from a message queue. Definition at line 286 of file MessageIDs.h. Referenced by Cognition::handleMessage().

#define SEND_PERCEPTS | ( | rp,
|  | cm,
|  | ci,
|  | ballp,
|  | lmp,
|  | lnsp,
|  | ep,
|  | plp,
|  | op,
|  | psdp,
|  | cp |  | ) |

| Value:
    static_cast<RobotPose&>(rp) << static_cast<CameraMatrix&>(cm) << static_cast<CameraInfo&>(ci) << static_cast<BallPercept&>(ballp) \
      << static_cast<LandmarksPercept&>(lmp) << static_cast<LinesPercept&>(lnsp) << static_cast<EdgesPercept&>(ep) << static_cast<PlayersPercept&>(plp) << static_cast<ObstaclesPercept&>(op) << static_cast<PSDPercept&>(psdp) << static_cast<CollisionPercept&>(cp)
Composes the idPercepts message into a message queue. Definition at line 289 of file MessageIDs.h. Referenced by Cognition::main().

#define RECEIVE_PERCEPTS | ( | rp,
|  | cm,
|  | ci,
|  | ballp,
|  | lmp,
|  | lnsp,
|  | ep,
|  | plp,
|  | op,
|  | psdp,
|  | cp |  | ) |

| Value:
    static_cast<RobotPose&>(rp) >> static_cast<CameraMatrix&>(cm) >> static_cast<CameraInfo&>(ci) >> static_cast<BallPercept&>(ballp) \
      >> static_cast<LandmarksPercept&>(lmp) >> static_cast<LinesPercept&>(lnsp) >> static_cast<EdgesPercept&>(ep) >> static_cast<PlayersPercept&>(plp) >> static_cast<ObstaclesPercept&>(op) >> static_cast<PSDPercept&>(psdp) >> static_cast<CollisionPercept&>(cp)
Receives the idPercepts message from a message queue. Definition at line 293 of file MessageIDs.h. Referenced by Cognition::handleMessage(), and CLogAnalyzerBase::readPercepts().

#define SEND_WORLD_STATE | ( | rp,
|  | bp,
|  | ppc,
|  | om,
|  | rs,
|  | cm,
|  | ci |  | ) |

| Value:
    static_cast<RobotPose&>(rp) \
      << static_cast<BallModel&>(bp) << static_cast<PlayerPoseCollection&>(ppc) << static_cast<ObstaclesModel&>(om) << static_cast<RobotState&>(rs) << static_cast<CameraMatrix&>(cm) << static_cast<CameraInfo&>(ci)
Composes the idWorldState message into a message queue. Definition at line 298 of file MessageIDs.h. Referenced by Cognition::main(), and LogPlayer::saveSynchronized().

#define RECEIVE_WORLDSTATE | ( | rp,
|  | bp,
|  | ppc,
|  | om,
|  | rs,
|  | cm,
|  | ci |  | ) |

| Value:
    static_cast<RobotPose&>(rp) \
      >> static_cast<BallModel&>(bp) >> static_cast<PlayerPoseCollection&>(ppc) >> static_cast<ObstaclesModel&>(om) >> static_cast<RobotState&>(rs) >> static_cast<CameraMatrix&>(cm) >> static_cast<CameraInfo&>(ci)
Receives the idWorldState message from a message queue. Definition at line 301 of file MessageIDs.h. Referenced by Cognition::handleMessage(), CLogAnalyzerBase::readRemoteCamWorldState(), CLogAnalyzerBase::readWorldState(), LogPlayer::saveCSV(), and LogPlayer::saveSynchronized().

## Enumeration Type Documentation

enum MessageID

  | IDs for debug messages. To distinguish debug messages, they all have an id. Enumeration values:
  undefined | undefined message type
  idText | the message contains plain unstructured text
  idSensorData | the message is SensorData
  idPercepts | the message contains percepts (see macro SEND_PERCEPTS)
  idSpecialPercept | the message is a SpecialPercept
  idWorldState | the message contains the world state (see macro SEND_WORLDSTATE)
  idOracledWorldState | the message is an oracled WorldState
  idGTCamWorldState | the message is a GTCam WorldState
  idRemoteCamWorldState | the message is a WorldState from the remote camera
  idLowResImage | the message is an old image (this should be id 2 for compatibility with old logfiles)
  idJPEGImage | the message is a JPEGImage
  idImage | the message is an Image (see macro SEND_IMAGE)
  idDebugImage | the message is a debug image (see macro SEND_DEBUG_IMAGE)
  idDebugColorClassImage | the message is a debug color class image (see macro SEND_DEBUG_COLOR_CLASS_IMAGE)
  idDebugKeyTable | the message is a DebugKeyTable
  idQueueFillRequest | the message is a QueueFillRequest
  idGenericDebugData | data/parameters used for debugging and parameter optimization
  idSolutionRequest | the message is a SolutionRequest
  idDebugDrawing | the message is a DebugDrawing
  idDebugDrawing2 | the message is a DebugDrawing
  idDebugDrawingFinished | the message is a DebugDrawing
  idStopwatch | the message contains stopwatch data
  idHistogram | contains a histogram
  idSyncTimestampRobot | contains the robots system time on time synchronization with remote cam
  idSyncTimestampRemoteCam | contains the remote-cam-servers system time on time synchronization with the robot
  idMotionRequest | the message is a MotionRequest
  idOdometryData | the message is OdometryData
  idJointData | the message is a JointData
  idJointDataSequence | the message is a JointDataSequence
  idHeadMotionRequest | the message is a HeadMotionRequest
  idHeadControlMode | the message is a HeadControlMode
  idFourierCoefficients | the message contains a set of fourier coefficients
  idLEDRequest | the message is a LEDRequest
  idInvKinWalkingParameters | the message contains parameters for the InvKinWalkingEngine
  idYetAnotherInvKinParams | contains a parameters for an inv kin engine
  idYetAnotherInvKinPaws | contains a parameters for the paws positions of an inv kin engine
  idMotionInfo | the message is the MotionInfo including the executed MotionRequest
  idBodyPosture | the message is the a BodyPosture
  idPIDData | The message is a PIDData
  idJoystickData | the message is a JoystickData
  idSoundRequest | The message is a SoundRequest
  idGT2004Parameters | the message contains UDParameters set for the UDWalkingEngine
  idGT2004EvolutionRequest | the message contains a request like 'current individual to measure is #7'
  idMotionNet | The message contains a complete motion net for the special actions
  idOdometryScale | the message is the generic debug data for odoemtry scale.
  idMotionRatingBehaviorMessage | the message is a MotionRatingBehavior debug message
  idCameraParameters | the message is CameraParameters
  idColorTable64 | the message is a ColorTable64
  idGameSpeed |
  idMotionControlSlowMotion | the message contains a desired game speed
  idBodyOffsets | the message is the generic debug data for body offsets.
  idImageProcessorParameters | parameters for the image processor.
  idXabsl2DebugRequest | the message is a Xabsl2DebugRequest
  idXabsl2DebugMessage | the message contains a debug message from the Xabsl2BehaviorControl
  idXabsl2IntermediateCode | intermediate code for a Xabsl2BehaviorControl
  idKickSelectionTable | A KickSelectionTable
  idKickRecord | the message contains information about a kick performed and the resulting ball position
  idGlobalGameControlData | the message is a GlobalGameControlData
  idGameControlData | the message is a GameControlData
  idBallPercept | contains the ballpercept from the cognition process
  idCollisionPercept | contains the collision percept from the cognition process
  idLandmarksPercept | contains the landmarks percept from the cognition process
  idLinesPercept | contains the lines percept from the cognition process
  idEdgesPercept | contains the edges percept from the cognition process
  idObstaclesPercept | contains the obstacles percept from the cognition process
  idPlayersPercept | contains the players percept from the cognition process
  idColorTableCuboids | contains a colorTableCuboids
  idColorTableReferenceColor | contains a colorTableReferenceColor
  idColorTableTSL | the message is a ColorTableTSL
  idRobotPose |
  idBallModel |
  idLinesSelfLocatorParameters |
  idGT2004BallLocatorData | settings for Kalman Ball Locator Filter
  idDDDSelfLocatorParameters |
  idPerceptOracle | the message is a percept oracle
  idDebugDrawing3 | the message is a DebugDrawing
  idDebugRequest | contains a debug request
  idDebugResponse | contains a debug response
  idStreamSpecification | contains the specification of streamable objects held by the StreamHandler
  idATH2005SLInfo | The message contains special date from the ATH2005 SelfLocator
  idBehaviorEvolutionPopulation | The message contains a population of behavior parameters
  idBehaviorEvolutionParameters | The message contains parameters for the evolution of behavior
  idBehaviorEvolutionCurrentIndividual |
  idMessageForRobotControl |
  idModuleSolutionTable |
  idDrawingManager | contains the specification of streamable objects held by the StreamHandler
  idDebugDataResponse |
  idDebugDataChangeRequest |
  idProcessBegin |
  idProcessFinished |
  idJPEGImage2 |
  idGT2005BallLocator1 |
  idGT2005BallLocator2 |
  idGT2005TeamBallLocator |
  idComboBallLocator |
  idGT2005Request |
  idGT2005DebugData |
  idGTCamKalmanBallFilter |
  idMSHBallLocatorEvolution |
  idDebugGrayScaleImage |
  idTestFun |
  idDebugJPEGImage |
  idDebugJPEGImage2 |
  idCameraMatrix |
  numOfMessageIDs | the number of message ids
Definition at line 18 of file MessageIDs.h. Referenced by LogPlayer::getCurrentMessageID(), InMessage::getMessageID(), GenericDebugData::getMessageID(), MessageQueueBase::getMessageID(), LogPlayer::keep(), operator>>(), and LogPlayer::remove().