LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
abstact player object class More...
#include <abstract_player_object.h>
Public Types | |
typedef std::vector< const AbstractPlayerObject * > | Cont |
type of pointer container | |
Public Member Functions | |
AbstractPlayerObject (const int id) | |
initialize member variables. | |
AbstractPlayerObject (const int id, const SideID side, const Localization::PlayerT &p) | |
initialize member variables using observed info More... | |
virtual | ~AbstractPlayerObject ()=default |
destructor. nothing to do | |
virtual bool | isSelf () const |
check if this player is self or not More... | |
virtual bool | isGhost () const |
check if this player is ghost object or not More... | |
virtual int | ghostCount () const |
get the counter value as a ghost recognition More... | |
virtual bool | isTackling () const =0 |
check if player is tackling or not More... | |
virtual void | setPlayerType (const int type) |
update player type id More... | |
void | setCard (const Card card) |
update card state More... | |
void | setBallReachStep (const int step) |
set the estimated minimum ball interception step. More... | |
int | id () const |
get the ID number for this object More... | |
SideID | side () const |
get team side id More... | |
int | unum () const |
get player's uniform number More... | |
int | unumCount () const |
get uniform number accuracy count More... | |
bool | goalie () const |
get goalie flag More... | |
const PlayerType * | playerTypePtr () const |
get the player type as a pointer. More... | |
Card | card () const |
get card type More... | |
const Vector2D & | pos () const |
get global position More... | |
int | posCount () const |
get global position accuracy More... | |
const Vector2D & | seenPos () const |
get the last seen position More... | |
int | seenPosCount () const |
get the number of cycles since last observation More... | |
const Vector2D & | heardPos () const |
get the last heard position More... | |
int | heardPosCount () const |
get the number of cycles since last observation More... | |
const Vector2D & | vel () const |
get velocity More... | |
int | velCount () const |
get velocity accuracy More... | |
const Vector2D & | seenVel () const |
get the last seen velocity More... | |
int | seenVelCount () const |
get the number of cycles since last observation More... | |
const AngleDeg & | body () const |
get global body angle More... | |
int | bodyCount () const |
get global body angle accuracy More... | |
const AngleDeg & | face () const |
get global neck angle More... | |
int | faceCount () const |
get global neck angle accuracy More... | |
const AngleDeg & | pointtoAngle () const |
get global pointing angle More... | |
int | pointtoCount () const |
get global pointing angle accuracy More... | |
bool | isKicking () const |
get kicking state information More... | |
double | dist2 (const AbstractPlayerObject &p) const |
get the squared distance from this player to the target player More... | |
double | dist (const AbstractPlayerObject &p) const |
get the distance from this player to the target player More... | |
double | distFromBall () const |
get distance from ball More... | |
const AngleDeg & | angleFromBall () const |
get angle from ball More... | |
double | distFromSelf () const |
get distance from self More... | |
const AngleDeg & | angleFromSelf () const |
get global angle from self position More... | |
int | ballReachStep () const |
get the estimated minimum ball interception step. More... | |
virtual double | kickRate () const |
get current estimated kick power rate More... | |
Vector2D | inertiaPoint (const int n_step) const |
estimate reach point More... | |
Vector2D | inertiaFinalPoint () const |
estimate final reach point More... | |
Static Public Member Functions | |
static double | get_minimum_evaluation (const Cont &cont, const PlayerEvaluator *evaluator) |
get minimum evaluation value within the input container using evaluator More... | |
static double | get_maximum_evaluation (const Cont &cont, const PlayerEvaluator *evaluator) |
get maximum evaluation value within the input container using evaluator More... | |
Protected Attributes | |
int | M_id |
identical number as object ID | |
SideID | M_side |
team side | |
int | M_unum |
uniform number | |
int | M_unum_count |
accuracy count | |
bool | M_goalie |
goalie flag | |
const PlayerType * | M_player_type |
player type reference | |
Card | M_card |
card information | |
Vector2D | M_pos |
global coordinate | |
int | M_pos_count |
main accuracy counter | |
Vector2D | M_seen_pos |
last seen global coordinate | |
int | M_seen_pos_count |
count since last observation | |
Vector2D | M_heard_pos |
last heard global coordinate | |
int | M_heard_pos_count |
count since last observation | |
Vector2D | M_vel |
velocity | |
int | M_vel_count |
accuracy count | |
Vector2D | M_seen_vel |
last seen velocity | |
int | M_seen_vel_count |
count since last observation | |
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 | |
AngleDeg | M_pointto_angle |
global pointing angle | |
int | M_pointto_count |
time count since the last pointto observation | |
bool | M_kicking |
kicking state | |
double | M_dist_from_ball |
distance from ball | |
AngleDeg | M_angle_from_ball |
angle from ball | |
double | M_dist_from_self |
distance from self | |
AngleDeg | M_angle_from_self |
angle from self | |
abstact player object class
rcsc::AbstractPlayerObject::AbstractPlayerObject | ( | const int | id, |
const SideID | side, | ||
const Localization::PlayerT & | p | ||
) |
initialize member variables using observed info
id | ID number for this object |
side | analyzed side info |
p | analyzed seen player info |
|
inline |
get angle from ball
|
inline |
get global angle from self position
|
inline |
get the estimated minimum ball interception step.
|
inline |
get global body angle
|
inline |
get global body angle accuracy
|
inline |
get card type
|
inline |
get the distance from this player to the target player
p | target player |
|
inline |
get the squared distance from this player to the target player
p | target player |
|
inline |
get distance from ball
|
inline |
get distance from self
|
inline |
get global neck angle
|
inline |
get global neck angle accuracy
|
static |
get maximum evaluation value within the input container using evaluator
cont | container of AbstractPlayerObject |
evaluator | evaluator object (has to be dynamically allocated) |
|
static |
get minimum evaluation value within the input container using evaluator
cont | container of AbstractPlayerObject |
evaluator | evaluator object (has to be dynamically allocated) |
|
inlinevirtual |
get the counter value as a ghost recognition
Reimplemented in rcsc::PlayerObject.
|
inline |
get goalie flag
|
inline |
get the last heard position
|
inline |
get the number of cycles since last observation
|
inline |
get the ID number for this object
|
inline |
estimate final reach point
|
inline |
estimate reach point
n_step | this method estimates ball point after this steps |
|
inlinevirtual |
check if this player is ghost object or not
Reimplemented in rcsc::PlayerObject.
|
inline |
get kicking state information
|
inlinevirtual |
check if this player is self or not
Reimplemented in rcsc::SelfObject.
|
pure virtual |
check if player is tackling or not
Implemented in rcsc::PlayerObject, and rcsc::SelfObject.
|
virtual |
get current estimated kick power rate
Reimplemented in rcsc::SelfObject.
|
inline |
get the player type as a pointer.
|
inline |
get global pointing angle
|
inline |
get global pointing angle accuracy
|
inline |
get global position
|
inline |
get global position accuracy
|
inline |
get the last seen position
|
inline |
get the number of cycles since last observation
|
inline |
get the last seen velocity
|
inline |
get the number of cycles since last observation
|
inline |
set the estimated minimum ball interception step.
step | estimated step value |
|
inline |
update card state
card | new card type |
|
virtual |
|
inline |
get team side id
|
inline |
get player's uniform number
|
inline |
get uniform number accuracy count
|
inline |
get velocity
|
inline |
get velocity accuracy