#include <Objects.h>
Inheritance diagram for DynamicObject:
Public Methods | |
DynamicObject () | |
bool | setRelativeDistanceChange (double d, Time time) |
double | getRelativeDistanceChange () const |
bool | setRelativeAngleChange (double d, Time time) |
double | getRelativeAngleChange () const |
bool | setTimeChangeInformation (Time time) |
Time | getTimeChangeInformation () const |
bool | setGlobalVelocity (VecPosition v, Time time) |
VecPosition | getGlobalVelocity () const |
double | getSpeed () const |
bool | setTimeGlobalVelocity (Time time) |
Time | getTimeGlobalVelocity () const |
bool | setGlobalVelocityLastSee (VecPosition vec) |
VecPosition | getGlobalVelocityLastSee () const |
Protected Attributes | |
VecPosition | vecGlobalVelocity |
Time | timeGlobalVelocity |
double | dRelativeDistanceChange |
double | dRelativeAngleChange |
Time | timeChangeInformation |
VecPosition | vecGlobalVelocityLastSee |
Definition at line 143 of file Objects.h.
|
This is the constructor for DynamicObject. A DynamicObject is created with all the variables initialized by (illegal) default values Definition at line 318 of file Objects.cpp. References dRelativeAngleChange, dRelativeDistanceChange, and UnknownDoubleValue. |
|
This method returns the global velocity of this object. The time of this information is related to the time returned by getTimeGlobalVelocity().
Definition at line 342 of file Objects.cpp. References vecGlobalVelocity. Referenced by WorldModel::getAgentGlobalVelocity(), WorldModel::getBallDirection(), WorldModel::getBallSpeed(), and WorldModel::getGlobalVelocity(). |
|
This method returns the global velocity of the object calculated after the last see message. The time of this information corresponds to 'getTimeChangeInformation'.
Definition at line 449 of file Objects.cpp. Referenced by WorldModel::getGlobalVelocityLastSee(). |
|
This method returns the relative angle change of this object. This information belongs to the server time that is returned by getTimeChangeInformation().
Definition at line 413 of file Objects.cpp. References dRelativeAngleChange. Referenced by WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), and WorldModel::initParticlesBall(). |
|
This method returns the relative distance change of this object. Note that this value is zero when object is at the same distance, but at a complete different angle. This occurs when an object has moved a lot in one cycle. This information belongs to the server time that is returned by getTimeChangeInformation().
Definition at line 392 of file Objects.cpp. References dRelativeDistanceChange. Referenced by WorldModel::calculateVelocityDynamicObject(), WorldModel::checkParticlesBall(), and WorldModel::initParticlesBall(). |
|
This method returns the speed of this object. The speed is the magnitude of the global velocity of the object
Definition at line 350 of file Objects.cpp. References VecPosition::getMagnitude(), and vecGlobalVelocity. Referenced by WorldModel::getAgentSpeed(). |
|
This method returns the server time that belongs to the relative distance and relative angle change of this object.
Definition at line 430 of file Objects.cpp. Referenced by WorldModel::calculateStateBall(), WorldModel::calculateStatePlayer(), WorldModel::checkParticlesBall(), WorldModel::getTimeChangeInformation(), and WorldModel::initParticlesBall(). |
|
This method returns the time that belongs to the global velocity of this object.
Definition at line 368 of file Objects.cpp. References timeGlobalVelocity. Referenced by WorldModel::getTimeGlobalVelocity(). |
|
This method sets the global velocity of this object and the time of this information
Definition at line 329 of file Objects.cpp. References EPSILON, VecPosition::getMagnitude(), setTimeGlobalVelocity(), VecPosition::setVecPosition(), and vecGlobalVelocity. Referenced by WorldModel::processCatchedBall(), WorldModel::processPerfectHearInfo(), WorldModel::processPerfectHearInfoBall(), WorldModel::processSeeGlobalInfo(), WorldModel::updateAfterSenseMessage(), WorldModel::updateAgentAndBallAfterSense(), WorldModel::updateAgentObjectAfterSee(), WorldModel::updateBallAfterKick(), WorldModel::updateBallForCollision(), WorldModel::updateDynamicObjectAfterSee(), and WorldModel::updateDynamicObjectForNextCycle(). |
|
This method sets the global velocity of the object calculated after the last see message. The time of this information corresponds to 'getTimeChangeInformation'.
Definition at line 439 of file Objects.cpp. References vecGlobalVelocityLastSee. Referenced by WorldModel::updateDynamicObjectAfterSee(). |
|
This method sets the relative angle change and the server time this information belongs to.
Definition at line 402 of file Objects.cpp. References dRelativeAngleChange, and setTimeChangeInformation(). Referenced by WorldModel::processNewObjectInfo(). |
|
This method sets the relative distance change and the time this information was calculated.
Definition at line 379 of file Objects.cpp. References dRelativeDistanceChange, and setTimeChangeInformation(). Referenced by WorldModel::processNewObjectInfo(). |
|
This method sets the time the change information was calculated.
Definition at line 421 of file Objects.cpp. References timeChangeInformation. Referenced by WorldModel::processSeeGlobalInfo(), setRelativeAngleChange(), and setRelativeDistanceChange(). |
|
This method sets the time that corresponds to the last update of the global velocity of this object.
Definition at line 359 of file Objects.cpp. References timeGlobalVelocity. Referenced by setGlobalVelocity(). |
|
Relative angle change Definition at line 153 of file Objects.h. Referenced by DynamicObject(), getRelativeAngleChange(), setRelativeAngleChange(), and BallObject::show(). |
|
Relative distance change Definition at line 152 of file Objects.h. Referenced by DynamicObject(), getRelativeDistanceChange(), setRelativeDistanceChange(), and BallObject::show(). |
|
Time of change information Definition at line 154 of file Objects.h. Referenced by setTimeChangeInformation(). |
|
Time of the corresponding velocity Definition at line 149 of file Objects.h. Referenced by getTimeGlobalVelocity(), setTimeGlobalVelocity(), AgentObject::show(), BallObject::show(), and PlayerObject::show(). |
|
Global velocity of the player Definition at line 148 of file Objects.h. Referenced by getGlobalVelocity(), getSpeed(), setGlobalVelocity(), AgentObject::show(), BallObject::show(), and PlayerObject::show(). |
|
vel. derived from last see Definition at line 156 of file Objects.h. Referenced by setGlobalVelocityLastSee(). |