Inheritance diagram for RS::PlayerView:


Public Member Functions | |
| PlayerView (const ViewId id) | |
| Create a player view with ViewId id. | |
| ~PlayerView () | |
| Destroys the player view. | |
| PlayerObject | getPlayerClosestToAgent (const Int hist=NOW) |
| Returns the player which is closest to the agent. | |
| PlayerObject | getOpponentClosestToAgent (const Int hist=NOW) |
| Returns the opponent which is closest to the agent. | |
| PlayerObject | getOpponentClosestToBall (const Int hist=NOW) |
| Returns the opponent which is closest to the ball. | |
| PlayerObject | getTeammateClosestToAgent (const Int hist=NOW) |
| Returns the teammate which is closest to the agent. | |
| PlayerObject | getTeammateClosestToBall (const Int hist=NOW) |
| Returns the observed teammate which is closest to the ball. | |
| PlayerObject | getTeammateIncludingAgentClosestToBall (const Int hist=NOW) |
| Returns the teammate, including the agent, which is closest to the ball. | |
| PlayerObject | getPlayerClosestToBall (const Int hist=NOW) |
| Returns the player, including the agent, which is closest to the ball. | |
| const std::vector< PlayerObject > & | getOpponents (const Int hist=NOW) const |
| Get a vector with the opponents. | |
| const std::vector< PlayerObject > & | getTeammates (const Int hist=NOW) const |
| Get a vector with the teammates. | |
| const std::vector< PlayerObject > & | getUnknownPlayers (const Int hist=NOW) const |
| Get a vector with the unknown players. | |
Protected Member Functions | |
Update functions. | |
| virtual void | myUpdateAfterSee () |
| Called after an visual (see) message has been received. | |
| virtual void | myNewCycle () |
| Called when the sensor interface detects a new cycle. | |
| virtual void | myUpdateAfterCoachMessage () |
| Called after a new message from the coach has been recieved. | |
| virtual void | myUpdateAfterInit () |
| Called after an init message has been received. | |
| virtual void | myUpdateAfterHear () |
| Called after an aural (hear) message has been received. | |
| virtual void | myUpdateAfterSense () |
| Called after a sense body message has been received. | |
| virtual void | myUpdateAfterCommand () |
| Called after a command has been executed. | |
More information in the view.
Definition at line 98 of file PlayerView.h.
|
|
Returns the player which is closest to the agent. If the agent doesn't know anything about any players then a PlayerObject with all values unknown will be returned. Definition at line 80 of file PlayerView.cc. References RS::WorldModel::getAgent(), getOpponentClosestToAgent(), RS::MobileObject::getPosition(), getTeammateClosestToAgent(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. |
|
|
Returns the opponent which is closest to the agent. If the agent doesn't know anything about any opponents then a PlayerObject with all values unknown will be returned. Definition at line 86 of file PlayerView.icc. References RS::WorldModel::getOpponentClosestToAgent(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. Referenced by RS::PassKick::evaluate(), and getPlayerClosestToAgent(). |
|
|
Returns the opponent which is closest to the ball. If the agent doesn't know anything about any opponents then a PlayerObject with all values unknown will be returned. Definition at line 90 of file PlayerView.icc. References RS::WorldModel::getOpponentClosestToBall(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. Referenced by RS::AmIClosestToBall::evaluate(), getPlayerClosestToBall(), and RS::OffsideTrapView::opponentHasBall(). |
|
|
Returns the teammate which is closest to the agent. If the agent doesn't know anything about any teammates then a PlayerObject with all values unknown will be returned. Definition at line 94 of file PlayerView.icc. References RS::WorldModel::getTeammateClosestToAgent(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. Referenced by getPlayerClosestToAgent(). |
|
|
Returns the observed teammate which is closest to the ball. The agent itself is not included. If no teammate is seen then a PlayerObject with all values unknown will be returned. Definition at line 98 of file PlayerView.icc. References RS::WorldModel::getTeammateClosestToBall(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. Referenced by RS::AmIClosestToBall::evaluate(), getPlayerClosestToBall(), RS::OffsideTrapView::getPlayersToSetPress(), and RS::OffsideTrapView::opponentHasBall(). |
|
|
Returns the teammate, including the agent, which is closest to the ball. If no teammates are seen then the closest teammate will be the agent itself. Definition at line 102 of file PlayerView.icc. References RS::WorldModel::getTeammateIncludingAgentClosestToBall(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. |
|
|
Returns the player, including the agent, which is closest to the ball. If no players are seen then the closest player will be the agent itself. Definition at line 94 of file PlayerView.cc. References RS::WorldModel::getBall(), getOpponentClosestToBall(), RS::MobileObject::getPosition(), getTeammateClosestToBall(), RS::WorldModelInterface::getWorld(), and RS::View::worldModelInterface. |
|
|
Called when the sensor interface detects a new cycle. It is called *before* the values in SensorInterface are erased, so this is the last chance to use them. Implements RS::View. Definition at line 118 of file PlayerView.icc. |
1.3-rc3