#include <player_object.h>
rcsc::PlayerObjectに対する継承グラフ
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 AngleDeg & | angleFromSelf () 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 Vector2D & | rpos () const |
get position relative to self position | |
const AngleDeg & | pointtoAngle () 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 [詳細] |
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
const AngleDeg& rcsc::PlayerObject::angleFromSelf | ( | ) | const [inline] |
get global angle from self position
bool rcsc::PlayerObject::isGhost | ( | ) | const [inline, virtual] |
check if this player is ghost object or not
rcsc::AbstractPlayerObjectを再定義しています。
int rcsc::PlayerObject::ghostCount | ( | ) | const [inline] |
get the count of ghost check
const Vector2D& rcsc::PlayerObject::rpos | ( | ) | const [inline] |
get position relative to self position
const AngleDeg& rcsc::PlayerObject::pointtoAngle | ( | ) | const [inline] |
get global pointing angle
int rcsc::PlayerObject::pointtoCount | ( | ) | const [inline] |
get global pointing angle accuracy
int rcsc::PlayerObject::tackleCount | ( | ) | const [inline] |
get tackling status accuracy
bool rcsc::PlayerObject::isTackling | ( | ) | const |
bool rcsc::PlayerObject::posValid | ( | ) | const [inline] |
velify global position accuracy
bool rcsc::PlayerObject::rposValid | ( | ) | const [inline] |
verify relative position accuracy
bool rcsc::PlayerObject::velValid | ( | ) | const [inline] |
verify velocity accuracy
bool rcsc::PlayerObject::bodyValid | ( | ) | const [inline] |
verify angle accuracy
bool rcsc::PlayerObject::faceValid | ( | ) | const [inline] |
verify angle accuracy
bool rcsc::PlayerObject::isKickable | ( | const double & | buf = 0.05 |
) | const |
check if player can kick the ball or not buf kickable area buffer
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 |
update status related to other objects
self | self position | |
ball | ball position |