#include <abstract_player_object.h>
rcsc::AbstractPlayerObjectに対する継承グラフ
Public メソッド | |
AbstractPlayerObject () | |
initialize member variables. | |
AbstractPlayerObject (const SideID side, const Localization::PlayerT &p) | |
initialize member variables using observed info | |
virtual | ~AbstractPlayerObject () |
destructor. nothing to do | |
virtual bool | isSelf () const |
check if this player is self or not | |
virtual bool | isGhost () const |
check if this player is ghost object or not | |
SideID | side () const |
get team side id | |
int | unum () const |
get player's uniform number | |
bool | goalie () const |
get goalie flag | |
int | type () const |
get the player type id | |
const PlayerType * | playerTypePtr () const |
get the player type as a pointer. | |
void | setPlayerType (const int type) |
update player type id | |
const Vector2D & | pos () const |
get global position | |
int | posCount () const |
get global position accuracy | |
const Vector2D & | seenPos () const |
get the last seen position | |
int | seenPosCount () const |
get the number of cycles since last observation | |
const Vector2D & | heardPos () const |
get the last heard position | |
int | heardPosCount () const |
get the number of cycles since last observation | |
const Vector2D & | vel () const |
get velocity | |
int | velCount () const |
get velocity accuracy | |
const AngleDeg & | body () const |
get global body angle | |
int | bodyCount () const |
get global body angle accuracy | |
const AngleDeg & | face () const |
get global neck angle | |
int | faceCount () const |
get global neck angle accuracy | |
const double & | distFromBall () const |
get distance from ball | |
Vector2D | inertiaPoint (const int n_step) const |
estimate reach point | |
Vector2D | inertiaFinalPoint () const |
estimate final reach point | |
template<typename REGION> | |
bool | isWithin (const REGION ®ion) const |
template method. check if player is in the region | |
Protected 変数 | |
SideID | M_side |
team side | |
int | M_unum |
uniform number | |
bool | M_goalie |
goalie flag | |
int | M_type |
player type id | |
const PlayerType * | M_player_type |
player type reference | |
Vector2D | M_pos |
global coordinate | |
int | M_pos_count |
main accuracy counter | |
Vector2D | M_seen_pos |
int | M_seen_pos_count |
last seen global coordinate | |
Vector2D | M_heard_pos |
count from last see | |
int | M_heard_pos_count |
last heard global coordinate | |
Vector2D | M_vel |
count from last hear global velocity | |
int | M_vel_count |
accuracy count | |
AngleDeg | M_body |
global body angle | |
int | M_body_count |
body angle accuracy | |
AngleDeg | M_face |
global neck angle | |
int | M_face_count |
face angle accuracy | |
double | M_dist_from_ball |
distance from ball |
rcsc::AbstractPlayerObject::AbstractPlayerObject | ( | const SideID | side, | |
const Localization::PlayerT & | p | |||
) |
initialize member variables using observed info
side | analyzed side info | |
p | analyzed seen player info |
virtual bool rcsc::AbstractPlayerObject::isSelf | ( | ) | const [inline, virtual] |
virtual bool rcsc::AbstractPlayerObject::isGhost | ( | ) | const [inline, virtual] |
check if this player is ghost object or not
rcsc::PlayerObjectで再定義されています。
SideID rcsc::AbstractPlayerObject::side | ( | ) | const [inline] |
get team side id
int rcsc::AbstractPlayerObject::unum | ( | ) | const [inline] |
get player's uniform number
bool rcsc::AbstractPlayerObject::goalie | ( | ) | const [inline] |
get goalie flag
int rcsc::AbstractPlayerObject::type | ( | ) | const [inline] |
get the player type id
const PlayerType* rcsc::AbstractPlayerObject::playerTypePtr | ( | ) | const [inline] |
get the player type as a pointer.
void rcsc::AbstractPlayerObject::setPlayerType | ( | const int | type | ) |
update player type id
id | new id |
const Vector2D& rcsc::AbstractPlayerObject::pos | ( | ) | const [inline] |
get global position
int rcsc::AbstractPlayerObject::posCount | ( | ) | const [inline] |
get global position accuracy
const Vector2D& rcsc::AbstractPlayerObject::seenPos | ( | ) | const [inline] |
get the last seen position
int rcsc::AbstractPlayerObject::seenPosCount | ( | ) | const [inline] |
get the number of cycles since last observation
const Vector2D& rcsc::AbstractPlayerObject::heardPos | ( | ) | const [inline] |
get the last heard position
int rcsc::AbstractPlayerObject::heardPosCount | ( | ) | const [inline] |
get the number of cycles since last observation
const Vector2D& rcsc::AbstractPlayerObject::vel | ( | ) | const [inline] |
get velocity
int rcsc::AbstractPlayerObject::velCount | ( | ) | const [inline] |
get velocity accuracy
const AngleDeg& rcsc::AbstractPlayerObject::body | ( | ) | const [inline] |
get global body angle
int rcsc::AbstractPlayerObject::bodyCount | ( | ) | const [inline] |
get global body angle accuracy
const AngleDeg& rcsc::AbstractPlayerObject::face | ( | ) | const [inline] |
get global neck angle
int rcsc::AbstractPlayerObject::faceCount | ( | ) | const [inline] |
get global neck angle accuracy
const double& rcsc::AbstractPlayerObject::distFromBall | ( | ) | const [inline] |
get distance from ball
Vector2D rcsc::AbstractPlayerObject::inertiaPoint | ( | const int | n_step | ) | const [inline] |
estimate reach point
n_step | this method estimates ball point after this steps |
Vector2D rcsc::AbstractPlayerObject::inertiaFinalPoint | ( | ) | const [inline] |
estimate final reach point
bool rcsc::AbstractPlayerObject::isWithin | ( | const REGION & | region | ) | const [inline] |
template method. check if player is in the region
region | template resion. REGION must have method contains() |