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

SystemCall Class Reference

static class for system calls
Attention:
the implementation is system specific!
More...

#include <SystemCall.h>

List of all members.

Static Public Member Functions

unsigned long getCurrentSystemTime ()
 returns the current system time in milliseconds

unsigned long getTimeSince (unsigned long aTime)
 returns the time since aTime

unsigned long getFreeMem ()
 returns the amount of free memory

unsigned char getRemainingPower ()
 returns the amount of remaining battery power in percent or 100 if the robot is attached to powerline

void reboot ()
 reboots the robot

void shutdown ()
 shuts the robot down

void getMacAddress (unsigned char address[6])
 returns the robot's mac address

RobotDesign::Design getRobotDesign ()
 returns the robot's design


Detailed Description

static class for system calls
Attention:
the implementation is system specific!

Definition at line 43 of file SystemCall.h.


Member Function Documentation

unsigned long SystemCall::getCurrentSystemTime  )  [static]
 

returns the current system time in milliseconds

Definition at line 21 of file SystemCall.cpp.

Referenced by DebugKeyTable::activate(), GT2004ObstaclesLocator::addObstaclePoint(), GT2004ObstaclesLocator::addObstaclePoints(), OCBridge::addPercept(), OCRedLine::addPercept(), BitePoint::addPercept(), GT2004ObstaclesLocator::addPSDPercept(), GT2004RobotStateDetector::calculateCollisionState(), GT2004HeadControl::calibrateHeadSpeed(), KickLogger::changeState(), DefaultTacticChooser::chooseOption(), CollectedBeliefs::CollectedBeliefs(), GT2004ObstaclesLocator::determineFreePartsOfGoals(), BB2004Calibrator::evolve(), GT2004SensorDataProcessor::execute(), ObstacleAvoiderOnGreenFieldERS7::execute(), ObstacleAvoiderOnGreenField::execute(), MotionRecognition::execute(), ImageSaver::execute(), BB2004Calibrator::execute(), OdometrySelfLocator::execute(), GT2004SelfLocator::execute(), GT2004RobotStateDetector::execute(), GT2004BasicBehaviorGoToPointAndAvoidObstacles::execute(), GT2004BasicBehaviorNextGT2004ParametersToBeMeasured::execute(), GT2004BasicBehaviorSendCurrentGT2004ParametersAndChooseNext::execute(), GT2004BasicBehaviorMeasureGT2004ParametersBlind::execute(), GT2004BasicBehaviorMeasureGT2004Parameters::execute(), GT2004BasicBehaviorEvolveOmniParameters::execute(), GT2004GetupEngine::executeParameterized(), RobotStateSymbols::getCurrentSystemTime(), getSystemTime(), getTimeSince(), OpenChallengeSymbols::getTimeSinceLastSeenRedLine(), Logger::handleMessage(), Debug::handleMessage(), GT2004BehaviorControl::handleMessage(), GT2004BallLocator::handleSeenBall(), GT2004BallLocator::handleUnseenBall(), ImageSaver::ImageSaver(), GTXabsl2EngineExecutor::init(), JoystickData::JoystickData(), Motion::main(), Logger::main(), Debug::main(), Cognition::main(), GaussBell::mergeBells(), LogPlayer::onIdle(), DDPHandler::onReceive(), operator>>(), ProcessCreator< T >::processNextFrame(), TeamMessageCollection::processOutMessages(), TeamMessageCollection::processTimeStamps(), DefaultOptionRating::rateOptions(), WalkAccelerationRestrictor::restrictAccelerations(), VAPoints::searchMaxima(), NetDebugSender::send(), NetSender< MessageQueue >::send(), DDPHandler::sendDDPPackage(), GT2004BallLocator::sendProcessModelStates(), GT2004BallLocator::setBallStateV2(), LandmarksState::setLandmarkVisibleByBeaconType(), ColorTableCuboids::setThresholds(), GaussBell::setTimeStamp(), SingleBeliefs::SingleBeliefs(), Parcour::start(), GameControlData::translateFromGlobalGameControlData(), Parcour::update(), CollectedBeliefs::update(), EvolutionSymbols::update(), RoboCupGameManagerSymbols::update(), and VAPoints::VAPoints().

unsigned long SystemCall::getTimeSince unsigned long  aTime  )  [inline, static]
 

returns the time since aTime

Definition at line 52 of file SystemCall.h.

References getCurrentSystemTime().

Referenced by VAPoints::addPoint(), GT2004ObstaclesLocator::addPSDPercept(), GT2004HeadControl::calibrateHeadSpeed(), GT2004StrategySymbols::computeRole(), GT2004ObstaclesLocator::determineFreePartsOfGoals(), GT2004StrategySymbols::estimateTimeToReachBall(), BB2004Calibrator::evolve(), GT2004TeamBallLocator::execute(), GT2004SensorDataProcessor::execute(), ObstacleAvoiderOnGreenFieldERS7::execute(), ObstacleAvoiderOnGreenField::execute(), ImageSaver::execute(), GT2004SelfLocator::execute(), GT2004RobotStateDetector::execute(), KickLogger::execute(), GT2004BasicBehaviorGoToPointAndAvoidObstacles::execute(), GT2004GetupEngine::executeParameterized(), RobotStateSymbols::getAnyBackButtonPressedForOneSecond(), RobotStateSymbols::getAnyBackButtonPressedShortAndReleased(), GT2004HeadControlSymbols::getBallTimeSinceLastSeen(), ColorTableCuboids::getColorClass(), SeenBallPosition::getConsecutivelySeenTime(), RobotStateSymbols::getForeBackButtonPressedShortAndReleased(), RobotStateSymbols::getHeadButtonPressedForThreeSeconds(), RobotStateSymbols::getHeadButtonPressedShortAndReleased(), RobotStateSymbols::getHindBackButtonPressedShortAndReleased(), JoystickSymbols::getJoystickTimeSinceLastMessage(), BallSymbols::getJustSeen(), BallModel::getKnownPosition(), RobotStateSymbols::getMiddleBackButtonPressedShortAndReleased(), RoboCupGameManagerSymbols::getOpponentTeamScored(), RoboCupGameManagerSymbols::getOwnTeamScored(), OpenChallengeSymbols::getRampTimeSinceLastSeen(), GT2004StrategySymbols::getSearchBallX(), BallModel::getTimeSinceLastKnown(), RoboCupGameManagerSymbols::getTimeSinceLastMessage(), BallSymbols::getTimeSinceLastSeen(), GT2004HeadControlSymbols::getTimeSinceLastSeenABeacon(), OpenChallengeSymbols::getTimeSinceLastSeenBitePoint(), OpenChallengeSymbols::getTimeSinceLastSeenBridge(), GT2004HeadControlSymbols::getTimeSinceLastSeenConsecutively(), BallSymbols::getTimeSinceLastSeenConsecutively(), RobotStateSymbols::getTimeSinceSomethingWasInFrontOfChest(), TeamMessage::isActual(), GT2004HeadControl::isTimedOut(), Motion::main(), Cognition::main(), GT2004ObstaclesLocator::moveObstaclesByOdometry(), LogPlayer::onIdle(), GT2004BehaviorControl::preExecute(), KickSelectionSymbols::retrieveKick(), VAPoints::searchMaxima(), DDPHandler::sendDDPPackage(), UDPHandlerEndpoint::sendPackage(), GTStandardConverter::setData(), EvolutionSymbols::update(), and VAPoint::updateRelevance().

Here is the call graph for this function:

unsigned long SystemCall::getFreeMem  )  [static]
 

returns the amount of free memory

Definition at line 27 of file SystemCall.cpp.

Referenced by GTXabsl2EngineExecutor::init().

unsigned char SystemCall::getRemainingPower  )  [static]
 

returns the amount of remaining battery power in percent or 100 if the robot is attached to powerline

Definition at line 34 of file SystemCall.cpp.

References VERIFY.

Referenced by RobotStateSymbols::getRemainingCapacity(), and GT2004LEDControl::showBatteryState().

void SystemCall::reboot  )  [static]
 

reboots the robot

Definition at line 43 of file SystemCall.cpp.

References VERIFY.

void SystemCall::shutdown  )  [static]
 

shuts the robot down

Definition at line 49 of file SystemCall.cpp.

References VERIFY.

Referenced by BasicBehaviorShutdown::execute().

void SystemCall::getMacAddress unsigned char  address[6]  )  [static]
 

returns the robot's mac address

Definition at line 55 of file SystemCall.cpp.

References VERIFY.

Referenced by RobotConfiguration::load().

RobotDesign::Design SystemCall::getRobotDesign  )  [static]
 

returns the robot's design

Definition at line 68 of file SystemCall.cpp.

References VERIFY.

Referenced by Debug::Debug(), MotorCommandsSender::getPrimitiveJointName(), MotorCommandsSender::getPrimitiveLEDName(), RobotConfiguration::load(), MotorCommandsSender::MotorCommandsSender(), operator>>(), MotorCommandsSender::preparePackage(), and SoundDataSender::SoundDataSender().


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