クラス rcsc::Body_KickMultiStep

multiple kick planning and behavior to accelerate the ball to the desired speed. NOTE!! please use carefully enforce mode. [詳細]

#include <body_kick_multi_step.h>

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

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

Public メソッド

 Body_KickMultiStep (const Vector2D &target_point, const double &first_speed, const bool enforce=false)
 construct with all parameters
bool execute (PlayerAgent *agent)
 execute action
const Vector2DballResultPos () const
 get the result ball position
const Vector2DballResultVel () const
 get the result ball velocity
int kickStep () const
 get the estimated kick steps

Static Public メソッド

static bool simulate_three_kick (Vector2D *achieved_vel, Vector2D *next_vel, const Vector2D &target_rpos, const double &first_speed, const Vector2D &my_rpos, const Vector2D &my_vel, const AngleDeg &my_body, const Vector2D &ball_rpos, const Vector2D &ball_vel, const PlayerAgent *agent, const bool enforce)
 static method. search the appropriate kick queue.

説明

multiple kick planning and behavior to accelerate the ball to the desired speed. NOTE!! please use carefully enforce mode.


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

rcsc::Body_KickMultiStep::Body_KickMultiStep ( const Vector2D target_point,
const double &  first_speed,
const bool  enforce = false 
) [inline]

construct with all parameters

引数:
target_point target point where the ball should reach or pass through
first_speed desired ball first speed
enforce if true, ball should be released enforcely


関数

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

execute action

引数:
agent pointer to the agent itself
戻り値:
true if action is performed

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

const Vector2D& rcsc::Body_KickMultiStep::ballResultPos (  )  const [inline]

get the result ball position

戻り値:
ball position after kick

const Vector2D& rcsc::Body_KickMultiStep::ballResultVel (  )  const [inline]

get the result ball velocity

戻り値:
ball velocity after kick

int rcsc::Body_KickMultiStep::kickStep (  )  const [inline]

get the estimated kick steps

戻り値:
estimated kick steps

bool rcsc::Body_KickMultiStep::simulate_three_kick ( Vector2D achieved_vel,
Vector2D next_vel,
const Vector2D target_rpos,
const double &  first_speed,
const Vector2D my_rpos,
const Vector2D my_vel,
const AngleDeg my_body,
const Vector2D ball_rpos,
const Vector2D ball_vel,
const PlayerAgent agent,
const bool  enforce 
) [static]

static method. search the appropriate kick queue.

引数:
achieved_vel max reachable ball velocity.
next_vel next ball velocity when this kick is done. this value is used to re-calculate the required kick power.
target_rpos target position relative to current agent position
first_speed the desired ball first speed
my_rpos estimated agent position relative to current agent position
my_vel estimated agent velocity
my_body agent body angle
ball_rpos ball position relative to current agent position.
ball_vel ball velocity
agent pointer to agent itself
enforce if true, planning is done to kick the ball enforcely
戻り値:
true if ball can be accelerated to the desired vel or enforce mode


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