ImageSaver Class Reference

#include <ImageSaver.h>

Inheritance diagram for ImageSaver:

SensorBehaviorControl Module SensorBehaviorControlInterfaces MessageHandler List of all members.

Public Member Functions

 ImageSaver (SensorBehaviorControlInterfaces &interfaces)
void init ()
virtual void execute ()
virtual bool handleMessage (InMessage &message)

Private Member Functions

 DECLARE_DEBUG_IMAGE (classificationY)

Private Attributes

HeadControlMode hcm
unsigned long lastSavingTime

Detailed Description

Definition at line 15 of file ImageSaver.h.


Constructor & Destructor Documentation

ImageSaver::ImageSaver ( SensorBehaviorControlInterfaces interfaces  ) 

Constructor.

Parameters:
interfaces The paramters of the SensorBehaviorControl module.

Definition at line 20 of file ImageSaver.cpp.

References LEDRequest::backFrontBlueLED, LEDRequest::backFrontWhiteLED, LEDRequest::backMiddleOrangeLED, LEDRequest::backMiddleWhiteLED, LEDRequest::backRearRedLED, LEDRequest::backRearWhiteLED, LEDRequest::faceLED, SystemCall::getCurrentSystemTime(), hcm, HeadControlMode::headControlMode, LEDRequest::headOrangeLED, LEDRequest::headWhiteLED, lastSavingTime, SensorBehaviorControlInterfaces::ledRequest, HeadControlMode::lookParallelToGround, and LEDRequest::oooo.


Member Function Documentation

ImageSaver::DECLARE_DEBUG_IMAGE ( classificationY   )  [private]

void ImageSaver::execute (  )  [virtual]

the "main" module where all the magic is happening

Implements Module.

Definition at line 44 of file ImageSaver.cpp.

References BodyPercept::backBack, BodyPercept::backFront, LEDRequest::backFrontWhiteLED, BodyPercept::backMiddle, LEDRequest::backMiddleWhiteLED, LEDRequest::backRearWhiteLED, SensorBehaviorControlInterfaces::cameraMatrix, RobotState::getButtonPressed(), RobotState::getButtonPressedTime(), RobotState::getButtonTime(), SystemCall::getCurrentSystemTime(), SystemCall::getTimeSince(), hcm, BodyPercept::head, HeadControlMode::headControlMode, SensorBehaviorControlInterfaces::headControlMode, idJPEGImage, SensorBehaviorControlInterfaces::image, lastSavingTime, SensorBehaviorControlInterfaces::ledRequest, LEDRequest::llll, HeadControlMode::lookStraightAhead, SensorBehaviorControlInterfaces::motionRequest, MotionRequest::motionType, LEDRequest::oooo, OUTPUT, SensorBehaviorControlInterfaces::robotState, HeadControlMode::searchForBall, MotionRequest::stand, and HeadControlMode::stayAsForced.

bool ImageSaver::handleMessage ( InMessage message  )  [virtual]

calibrate the psd (while standing still) to the minimum currently no debug messages are handled

Reimplemented from Module.

Definition at line 85 of file ImageSaver.cpp.

void ImageSaver::init (  ) 

Definition at line 40 of file ImageSaver.cpp.


Member Data Documentation

HeadControlMode ImageSaver::hcm [private]

Definition at line 35 of file ImageSaver.h.

Referenced by execute(), and ImageSaver().

unsigned long ImageSaver::lastSavingTime [private]

Definition at line 37 of file ImageSaver.h.

Referenced by execute(), and ImageSaver().


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