クラス rcsc::Body_ClearBall

kick the ball to escape from a dangerous situation [詳細]

#include <body_clear_ball.h>

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

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

Public メソッド

 Body_ClearBall ()
 accessible from global.
bool execute (PlayerAgent *agent)
 execute action

Static Public メソッド

static AngleDeg get_best_angle (const PlayerAgent *agent, const double &lower_angle, const double &upper_angle, const bool clear_mode=true)
 calculate best kick angle
static double calc_score (const PlayerAgent *agent, const AngleDeg &target_angle)
 calculate score of the specified angle for the clear kick

説明

kick the ball to escape from a dangerous situation


関数

bool rcsc::Body_ClearBall::execute ( PlayerAgent agent  )  [virtual]

execute action

引数:
agent pointer to the agent itself

rcsc::BodyActionを実装しています。

AngleDeg rcsc::Body_ClearBall::get_best_angle ( const PlayerAgent agent,
const double &  lower_angle,
const double &  upper_angle,
const bool  clear_mode = true 
) [static]

calculate best kick angle

引数:
agent const pointer to the agent itself
lower_angle considered angle range min
upper_angle considered angle range max
clear_mode true if this search is done for the clear kick
戻り値:
calculated angle

double rcsc::Body_ClearBall::calc_score ( const PlayerAgent agent,
const AngleDeg target_angle 
) [static]

calculate score of the specified angle for the clear kick

引数:
agent const pointer to the agent itself
target_angle angle to be calculated
戻り値:
calcurated score


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