WorldState.h File Reference
Detailed Description
Describes WorldState, maintains information about the robot's environment, namely sensors and power status.
- Author:
- ejt (Creator)
- Author
- kcomer
- Name
- tekkotsu-4_0
- Revision
- 1.46
- State
- Exp
- Date
- 2007/11/15 21:33:04
Definition in file WorldState.h.
#include "Shared/RobotInfo.h"
#include "Events/EventBase.h"
#include "IPC/ProcessID.h"
#include <math.h>
#include <vector>
Go to the source code of this file.
|
Namespaces |
namespace | SensorSrcID |
namespace | PowerSrcID |
Classes |
class | WorldStateLookup |
| This class masquerades as a simple WorldState pointer, but actually checks the process ID of the referencing thread to allow each thread group to have a separate WorldState*. More...
|
class | WorldState |
| The state of the robot and its environment. More...
|
Enumerations |
enum | SensorSrcID::SensorSourceID_t { SensorSrcID::UpdatedSID
} |
| holds source ID types for sensor events More...
|
enum | PowerSrcID::PowerSourceID_t {
PowerSrcID::PauseSID = 0,
PowerSrcID::MotorPowerSID,
PowerSrcID::VibrationSID,
PowerSrcID::BatteryEmptySID,
PowerSrcID::LowPowerWarnSID,
PowerSrcID::BatteryFullSID,
PowerSrcID::ExternalPowerSID,
PowerSrcID::ExternalPortSID,
PowerSrcID::BatteryConnectSID,
PowerSrcID::BatteryInitSID,
PowerSrcID::DischargingSID,
PowerSrcID::ChargingSID,
PowerSrcID::OverheatingSID,
PowerSrcID::PowerGoodSID,
PowerSrcID::ChargerStatusSID,
PowerSrcID::SuspendedSID,
PowerSrcID::OverChargedSID,
PowerSrcID::TermDischargeSID,
PowerSrcID::TermChargeSID,
PowerSrcID::ErrorSID,
PowerSrcID::StationConnectSID,
PowerSrcID::BatteryOverCurrentSID,
PowerSrcID::DataFromStationSID,
PowerSrcID::RegisterUpdateSID,
PowerSrcID::RTCSID,
PowerSrcID::SpecialModeSID,
PowerSrcID::BMNDebugModeSID,
PowerSrcID::PlungerSID,
PowerSrcID::UpdatedSID,
PowerSrcID::NumPowerSIDs
} |
| holds source ID types for power events More...
|
Variables |
WorldStateLookup | state |
| the global state object, points into a shared memory region, created by MainObject
|
Variable Documentation
the global state object, points into a shared memory region, created by MainObject
Definition at line 35 of file WorldState.cc.
Referenced by Wireless::blockingSend(), BatteryMonitorBehavior::calcFlipDelay(), MotionManager::convertMotion(), WorldStatePool::doReleaseResource(), DeadReckoningBehavior< ParticleT >::DoStart(), WorldStatePool::doUseResource(), EmergencyStopMC::freezeJoints(), WorldState::getCurrent(), MotionManager::getOutputs(), PostureMC::isAlive(), WorldStateVelDaemon::processEvent(), WorldStateSerializerBehavior::processEvent(), WalkToTargetNode::processEvent(), TorqueCalibrate::TakeMeasurementControl::processEvent(), SensorObserverControl::processEvent(), PostureEditor::processEvent(), BatteryMonitorBehavior::processEvent(), AutoGetupBehavior::processEvent(), WorldStatePool::read(), BatteryCheckControl::refresh(), BatteryCheckControl::report(), WalkMC::resetLegPos(), Wireless::send(), CameraStreamBehavior::sendSensors(), EventProxy::sendState(), BatteryMonitorBehavior::setFlipper(), MotionManager::setPID(), WalkCalibration::setupMoving(), BatteryMonitorBehavior::shouldWarn(), BatteryMonitorBehavior::startWarning(), HeadPointerMC::takeSnapshot(), WorldStateVelDaemon::trapEvent(), Controller::trapEvent(), Kinematics::update(), EmergencyStopMC::updateOutputs(), MotionManager::updatePIDs(), and SensorObserverControl::updateRT().
|