#include <Objects.h>
Inheritance diagram for PlayerObject:
Definition at line 183 of file Objects.h.
|
This is the constructor for PlayerObject. A PlayerObject is created with all variables initialized to (illegal) default values Definition at line 440 of file Objects.C. References angGlobalBodyAngle, angGlobalNeckAngle, angRelativeBodyAngle, angRelativeNeckAngle, isGoalie, isKnownPlayer, and UnknownAngleValue. |
|
This method returns the global body angle of this object. This information is from the server time that is returned by getTimeGlobalAngles().
Definition at line 486 of file Objects.C. References AngDeg. Referenced by WorldModel::getAgentGlobalBodyAngle(), WorldModel::getGlobalBodyAngle(), and show(). |
|
This method returns the global neck angle of this object. This information is from the time that is returned by getTimeGlobalAngles().
Definition at line 526 of file Objects.C. References AngDeg. Referenced by WorldModel::calculateStatePlayer(), WorldModel::getAgentGlobalNeckAngle(), and WorldModel::getGlobalNeckAngle(). |
|
This method returns whether the current object is a goalie or not.
Definition at line 649 of file Objects.C. References isGoalie. Referenced by WorldModel::getOppGoalieType(), and WorldModel::getOwnGoalieType(). |
|
This method returns whether the current object is a known player or not. A known player is a player of which we know the number. If we don't know the player number of a player, the player is put at the index of a player that isn't seen in a while and the isKnownPlayer attribute is set to false.
Definition at line 633 of file Objects.C. References isKnownPlayer. Referenced by WorldModel::isKnownPlayer(), and WorldModel::processPerfectHearInfo(). |
|
This method returns the maximal possible object type as set by 'setPossibleRange'.
Definition at line 611 of file Objects.C. References ObjectT, and objRangeMax. |
|
This method returns the minimal possible object type as set by 'setPossibleRange'.
Definition at line 603 of file Objects.C. References ObjectT, and objRangeMin. |
|
This method returns the relative body angle of this object. This information is from the server time that is returned by getTimeRelativeAngles().
Definition at line 466 of file Objects.C. References AngDeg. Referenced by WorldModel::updateDynamicObjectAfterSee(). |
|
This method returns the relative neck angle of this object. This information is from the time that is returned by getTimeRelativeAngles().
Definition at line 506 of file Objects.C. References AngDeg. Referenced by WorldModel::updateDynamicObjectAfterSee(). |
|
This method returns the server time in which the global body and neck angle of this object were calculated.
Definition at line 560 of file Objects.C. References timeGlobalAngles. Referenced by WorldModel::getTimeGlobalAngles(). |
|
This method returns the server time in which the relative body and neck angle of this object were calculated.
Definition at line 543 of file Objects.C. References timeRelativeAngles. Referenced by WorldModel::updateDynamicObjectAfterSee(). |
|
This method returns a boolean indicating whether the supplied object type, is in the range of possible object types set by 'setPossibleRange'.
Definition at line 584 of file Objects.C. References SoccerTypes::getIndex(), SoccerTypes::isOpponent(), ObjectT, objRangeMax, and objRangeMin. Referenced by WorldModel::getFirstEmptySpotInSet(), and WorldModel::mapUnknownPlayers(). |
|
This method sets the facing direction of the body and the time of this information (all global).
Definition at line 476 of file Objects.C. References AngDeg, angGlobalBodyAngle, and setTimeGlobalAngles(). Referenced by WorldModel::processSeeGlobalInfo(), and WorldModel::updateDynamicObjectAfterSee(). |
|
This method returns the facing direction of the neck and the time of this information (all global).
Definition at line 516 of file Objects.C. References AngDeg, angGlobalNeckAngle, and setTimeGlobalAngles(). Referenced by WorldModel::processSeeGlobalInfo(), and WorldModel::updateDynamicObjectAfterSee(). |
|
This method sets whether this dynamic object is a goalie or not.
Definition at line 641 of file Objects.C. References isGoalie. Referenced by WorldModel::processPerfectHearInfo(). |
|
This method sets whether this dynamic object is a known player or not. A known player is a player of which we know the number. If we don't know the player number of a player, the player is put at the index of a player that isn't seen in a while and the isKnownPlayer attribute is set to false.
Definition at line 622 of file Objects.C. References isKnownPlayer. Referenced by WorldModel::processPerfectHearInfo(), WorldModel::processSeeGlobalInfo(), and WorldModel::setIsKnownPlayer(). |
|
This method sets the possible range from which this object must originate from. Since the ordening of objects in a 'see' message is always the same (first teammates then opponents and always sorted by player number), it is possible to derive the range of objects from which the supplied information must originate.
Definition at line 573 of file Objects.C. References ObjectT, objRangeMax, and objRangeMin. |
|
This method sets the facing direction of the body and the time of this information (all relative to the agent).
Definition at line 456 of file Objects.C. References AngDeg, angRelativeBodyAngle, and setTimeRelativeAngles(). |
|
This method returns the facing direction of the neck and the time of this information (all relative to the agent).
Definition at line 496 of file Objects.C. References AngDeg, angRelativeNeckAngle, and setTimeRelativeAngles(). |
|
This method sets the time the facing direction was calculated.
Definition at line 551 of file Objects.C. References timeGlobalAngles. Referenced by setGlobalBodyAngle(), and setGlobalNeckAngle(). |
|
This method sets the time the facing direction was calculated.
Definition at line 534 of file Objects.C. References timeRelativeAngles. Referenced by setRelativeBodyAngle(), and setRelativeNeckAngle(). |
|
This method prints the information about this PlayerObject to the specified output stream. The variables are printed with the specified team name.
Reimplemented in AgentObject. Definition at line 667 of file Objects.C. References angGlobalNeckAngle, Object::getConfidence(), getGlobalBodyAngle(), SoccerTypes::getObjectStr(), isKnownPlayer, MAX_TEAM_NAME_LENGTH, Object::objectType, Object::posGlobal, timeGlobalAngles, Object::timeGlobalPosition, DynamicObject::timeGlobalVelocity, Object::timeLastSeen, and DynamicObject::vecGlobalVelocity. |
|
This method prints the information about this PlayerObject to the specified output stream. The variables are printed with the default team name.
Reimplemented from Object. Reimplemented in AgentObject. Definition at line 658 of file Objects.C. References DEFAULT_TEAM_NAME. Referenced by WorldModel::show(). |
|
Global body angle Definition at line 190 of file Objects.h. Referenced by PlayerObject(), setGlobalBodyAngle(), and AgentObject::setGlobalNeckAngle(). |
|
Global neck angle Definition at line 191 of file Objects.h. Referenced by AgentObject::AgentObject(), PlayerObject(), AgentObject::setGlobalNeckAngle(), setGlobalNeckAngle(), AgentObject::show(), and show(). |
|
Relative body angle to main player Definition at line 195 of file Objects.h. Referenced by PlayerObject(), and setRelativeBodyAngle(). |
|
Relative neck angle to main player Definition at line 196 of file Objects.h. Referenced by PlayerObject(), and setRelativeNeckAngle(). |
|
is this object a goalie Definition at line 189 of file Objects.h. Referenced by getIsGoalie(), PlayerObject(), and setIsGoalie(). |
|
are we sure about player number Definition at line 186 of file Objects.h. Referenced by getIsKnownPlayer(), PlayerObject(), setIsKnownPlayer(), and show(). |
|
Maximum in range of possible player obj Definition at line 188 of file Objects.h. Referenced by getMaxRange(), isInRange(), and setPossibleRange(). |
|
Minimum in range of possible player obj Definition at line 187 of file Objects.h. Referenced by getMinRange(), isInRange(), and setPossibleRange(). |
|
Server time of global angles Definition at line 192 of file Objects.h. Referenced by getTimeGlobalAngles(), setTimeGlobalAngles(), and show(). |
|
Server time of relative angles Definition at line 197 of file Objects.h. Referenced by getTimeRelativeAngles(), and setTimeRelativeAngles(). |