クラス rcsc::PlayerObject

observed player object class [詳細]

#include <player_object.h>

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

rcsc::AbstractPlayerObject すべてのメンバ一覧

Public メソッド

 PlayerObject ()
 initialize member variables.
 PlayerObject (const SideID side, const Localization::PlayerT &p)
 initialize member variables using observed info
 ~PlayerObject ()
 destructor. nothing to do
const double & distFromSelf () const
 get distance from self
const AngleDegangleFromSelf () const
 get global angle from self position
bool isGhost () const
 check if this player is ghost object or not
int ghostCount () const
 get the count of ghost check
const Vector2Drpos () const
 get position relative to self position
const AngleDegpointtoAngle () const
 get global pointing angle
int pointtoCount () const
 get global pointing angle accuracy
int tackleCount () const
 get tackling status accuracy
bool isTackling () const
 check if player is tackling
bool posValid () const
 velify global position accuracy
bool rposValid () const
 verify relative position accuracy
bool velValid () const
 verify velocity accuracy
bool bodyValid () const
 verify angle accuracy
bool faceValid () const
 verify angle accuracy
bool isKickable (const double &buf=0.05) const
 check if player can kick the ball or not buf kickable area buffer
void update ()
 update status only with intenal info
void setGhost ()
 increment ghost count
void updateBySee (const SideID side, const Localization::PlayerT &p)
 update status using localized player info
void updateByFullstate (const FullstateSensor::PlayerT &p, const Vector2D &self_pos, const Vector2D &ball_pos)
 update status using fullstate info
void updateByHear (const SideID heard_side, const int heard_unum, const bool goalie, const Vector2D &heard_pos)
 update staus using heard info
void updateByHear (const SideID heard_side, const int heard_unum, const bool goalie, const Vector2D &heard_pos, const AngleDeg &heard_body)
 update staus using heard info
void updateSelfBallRelated (const Vector2D &self, const Vector2D &ball)
 update status related to other objects
void forget ()
 reset accuracy info

Static Public メソッド

static void set_count_thr (const int pos_thr, const int vel_thr, const int face_thr)
 set accuracy count threshold values.

構成

class  CountCmp
 predicate functor to compare player's accuracy. reference version [詳細]
class  IsInvalidOp
 functor to check if player has enough accuracy [詳細]
class  PtrBallDistCmp
 predicate functor to compare player's distance from ball [詳細]
class  PtrCountCmp
 predicate functor to compare player's accuracy. pointer version [詳細]
class  PtrSelfDistCmp
 predicate functor to compare player's distance from self [詳細]
class  UpdateOp
 functor to update [詳細]

説明

observed player object class


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

rcsc::PlayerObject::PlayerObject ( const SideID  side,
const Localization::PlayerT p 
)

initialize member variables using observed info

引数:
side analyzed side info
p analyzed seen player info


関数

void rcsc::PlayerObject::set_count_thr ( const int  pos_thr,
const int  vel_thr,
const int  face_thr 
) [static]

set accuracy count threshold values.

引数:
pos_thr threshold value for M_pos
vel_thr threshold value for M_vel
face_thr threshold value for M_body and M_face

const double& rcsc::PlayerObject::distFromSelf (  )  const [inline]

get distance from self

戻り値:
distance value from self

const AngleDeg& rcsc::PlayerObject::angleFromSelf (  )  const [inline]

get global angle from self position

戻り値:
angle value from self position

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

check if this player is ghost object or not

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

rcsc::AbstractPlayerObjectを再定義しています。

int rcsc::PlayerObject::ghostCount (  )  const [inline]

get the count of ghost check

戻り値:
count of ghost check

const Vector2D& rcsc::PlayerObject::rpos (  )  const [inline]

get position relative to self position

戻り値:
const reference to the point object

const AngleDeg& rcsc::PlayerObject::pointtoAngle (  )  const [inline]

get global pointing angle

戻り値:
const reference to the angle object

int rcsc::PlayerObject::pointtoCount (  )  const [inline]

get global pointing angle accuracy

戻り値:
count from last observation

int rcsc::PlayerObject::tackleCount (  )  const [inline]

get tackling status accuracy

戻り値:
count from last observation

bool rcsc::PlayerObject::isTackling (  )  const

check if player is tackling

戻り値:
true if tackle accuracy is less than tackle cycles in ServerParam

bool rcsc::PlayerObject::posValid (  )  const [inline]

velify global position accuracy

戻り値:
true if position has enough accuracy

bool rcsc::PlayerObject::rposValid (  )  const [inline]

verify relative position accuracy

戻り値:
true if relative position has enough accuracy

bool rcsc::PlayerObject::velValid (  )  const [inline]

verify velocity accuracy

戻り値:
true if accuracy has enough accuracy

bool rcsc::PlayerObject::bodyValid (  )  const [inline]

verify angle accuracy

戻り値:
true if angle has enoubh accuracy

bool rcsc::PlayerObject::faceValid (  )  const [inline]

verify angle accuracy

戻り値:
true if angle has enoubh accuracy

bool rcsc::PlayerObject::isKickable ( const double &  buf = 0.05  )  const

check if player can kick the ball or not buf kickable area buffer

戻り値:
true if player can kick the ball

void rcsc::PlayerObject::updateBySee ( const SideID  side,
const Localization::PlayerT p 
)

update status using localized player info

引数:
side analyzed side info
p localized player info

void rcsc::PlayerObject::updateByFullstate ( const FullstateSensor::PlayerT p,
const Vector2D self_pos,
const Vector2D ball_pos 
)

update status using fullstate info

引数:
p fullstate player info
self_pos global self position
ball_pos global ball position

void rcsc::PlayerObject::updateByHear ( const SideID  heard_side,
const int  heard_unum,
const bool  goalie,
const Vector2D heard_pos 
)

update staus using heard info

引数:
heard_side heard side info
heard_unum heard uniform number
goalie update goalie info, only if this value is true.
heard_pos heard global position

void rcsc::PlayerObject::updateByHear ( const SideID  heard_side,
const int  heard_unum,
const bool  goalie,
const Vector2D heard_pos,
const AngleDeg heard_body 
)

update staus using heard info

引数:
heard_side heard side info
heard_unum heard uniform number
goalie update goalie info, only if this value is true.
heard_pos heard global position

void rcsc::PlayerObject::updateSelfBallRelated ( const Vector2D self,
const Vector2D ball 
)

update status related to other objects

引数:
self self position
ball ball position
This method is called just before decide action


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