クラス rcsc::AbstractPlayerObject

abstact player object class [詳細]

#include <abstract_player_object.h>

rcsc::AbstractPlayerObjectに対する継承グラフ

rcsc::PlayerObject rcsc::SelfObject すべてのメンバ一覧

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 PlayerTypeplayerTypePtr () const
 get the player type as a pointer.
void setPlayerType (const int type)
 update player type id
const Vector2Dpos () const
 get global position
int posCount () const
 get global position accuracy
const Vector2DseenPos () const
 get the last seen position
int seenPosCount () const
 get the number of cycles since last observation
const Vector2DheardPos () const
 get the last heard position
int heardPosCount () const
 get the number of cycles since last observation
const Vector2Dvel () const
 get velocity
int velCount () const
 get velocity accuracy
const AngleDegbody () const
 get global body angle
int bodyCount () const
 get global body angle accuracy
const AngleDegface () 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 &region) 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 PlayerTypeM_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

説明

abstact player object class


コンストラクタとデストラクタ

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]

check if this player is self or not

戻り値:
true if this player is self

rcsc::SelfObjectで再定義されています。

virtual bool rcsc::AbstractPlayerObject::isGhost (  )  const [inline, virtual]

check if this player is ghost object or not

戻り値:
true if this player may be ghost object

rcsc::PlayerObjectで再定義されています。

SideID rcsc::AbstractPlayerObject::side (  )  const [inline]

get team side id

戻り値:
side id (LEFT,RIGHT,NEUTRAL)

int rcsc::AbstractPlayerObject::unum (  )  const [inline]

get player's uniform number

戻り値:
uniform number. if unknown player, returned -1

bool rcsc::AbstractPlayerObject::goalie (  )  const [inline]

get goalie flag

戻り値:
true if this player is goalie

int rcsc::AbstractPlayerObject::type (  )  const [inline]

get the player type id

戻り値:
player type id

const PlayerType* rcsc::AbstractPlayerObject::playerTypePtr (  )  const [inline]

get the player type as a pointer.

戻り値:
player type pointer variable

void rcsc::AbstractPlayerObject::setPlayerType ( const int  type  ) 

update player type id

引数:
id new id

const Vector2D& rcsc::AbstractPlayerObject::pos (  )  const [inline]

get global position

戻り値:
const reference to the point object

int rcsc::AbstractPlayerObject::posCount (  )  const [inline]

get global position accuracy

戻り値:
count from last observation

const Vector2D& rcsc::AbstractPlayerObject::seenPos (  )  const [inline]

get the last seen position

戻り値:
const reference to the point object

int rcsc::AbstractPlayerObject::seenPosCount (  )  const [inline]

get the number of cycles since last observation

戻り値:
count since last seen

const Vector2D& rcsc::AbstractPlayerObject::heardPos (  )  const [inline]

get the last heard position

戻り値:
const reference to the point object

int rcsc::AbstractPlayerObject::heardPosCount (  )  const [inline]

get the number of cycles since last observation

戻り値:
count since last observation

const Vector2D& rcsc::AbstractPlayerObject::vel (  )  const [inline]

get velocity

戻り値:
const reference to the vector object

int rcsc::AbstractPlayerObject::velCount (  )  const [inline]

get velocity accuracy

戻り値:
count from last observation

const AngleDeg& rcsc::AbstractPlayerObject::body (  )  const [inline]

get global body angle

戻り値:
const reference to the angle object

int rcsc::AbstractPlayerObject::bodyCount (  )  const [inline]

get global body angle accuracy

戻り値:
count from last observation

const AngleDeg& rcsc::AbstractPlayerObject::face (  )  const [inline]

get global neck angle

戻り値:
const reference to the angle object

int rcsc::AbstractPlayerObject::faceCount (  )  const [inline]

get global neck angle accuracy

戻り値:
count from last observation

const double& rcsc::AbstractPlayerObject::distFromBall (  )  const [inline]

get distance from ball

戻り値:
distance value 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
戻り値:
estimated point vector

Vector2D rcsc::AbstractPlayerObject::inertiaFinalPoint (  )  const [inline]

estimate final reach point

戻り値:
estimated point vector

template<typename REGION>
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()
戻り値:
true if region contains player position


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0