#include <trainer_agent.h>
rcsc::TrainerAgentに対する継承グラフ
Public メソッド | |
TrainerAgent () | |
initialize member variables | |
virtual | ~TrainerAgent () |
delete dynamic allocated memory | |
const TrainerConfig & | config () const |
get configuration set | |
const GlobalWorldModel & | world () const |
get field status | |
const GlobalVisualSensor & | visualSensor () const |
get the analyzed visual info | |
void | finalize () |
finalize program process | |
bool | doCheckBall () |
send check_ball command | |
bool | doLook () |
send look command | |
bool | doTeamNames () |
send team_name command | |
bool | doEye (bool on) |
send eye command on if true, send (eye on), else (eye off) | |
bool | doEar (bool on) |
send ear command on if true, send (ear on), else (ear off) | |
bool | doKickOff () |
send start command to kickoff the game | |
bool | doMoveBall (const Vector2D &pos, const Vector2D &vel) |
send ball move command | |
bool | doMovePlayer (const std::string &teamname, const int unum, const Vector2D &pos) |
send player move command | |
bool | doMovePlayer (const std::string &teamname, const int unum, const Vector2D &pos, const AngleDeg &angle) |
send player move command | |
bool | doRecover () |
send recover command | |
bool | doChangeMode (const PlayMode mode) |
send playmode change command | |
bool | doChangePlayerType (const std::string &teamname, const int unum, const int type) |
send change_player_type command | |
bool | doSay (const std::string &msg) |
send say command (coach language) | |
Protected メソッド | |
virtual bool | initImpl (CmdLineParser &cmd_parser) |
analyze command line options | |
virtual bool | handleStart () |
handle start event | |
virtual void | handleMessage () |
handle server message event | |
virtual void | handleTimeout (const int timeout_count, const int waited_msec) |
handle timeout event | |
virtual void | handleExit () |
handle exit event | |
virtual void | actionImpl ()=0 |
pure virtual method. register decision. | |
Protected 変数 | |
TrainerConfig | M_config |
configuration parameter set | |
GlobalWorldModel | M_worldmodel |
internal memory of field status |
const TrainerConfig& rcsc::TrainerAgent::config | ( | ) | const [inline] |
get configuration set
const GlobalWorldModel& rcsc::TrainerAgent::world | ( | ) | const [inline] |
get field status
const GlobalVisualSensor & rcsc::TrainerAgent::visualSensor | ( | ) | const |
get the analyzed visual info
bool rcsc::TrainerAgent::initImpl | ( | CmdLineParser & | cmd_parser | ) | [protected, virtual] |
analyze command line options
cmd_parser | command line parser object |
rcsc::SoccerAgentを実装しています。
bool rcsc::TrainerAgent::handleStart | ( | ) | [protected, virtual] |
handle start event
rcsc::SoccerAgentを実装しています。
void rcsc::TrainerAgent::handleMessage | ( | ) | [protected, virtual] |
void rcsc::TrainerAgent::handleTimeout | ( | const int | timeout_count, | |
const int | waited_msec | |||
) | [protected, virtual] |
handle timeout event
timeout_count | count of timeout without sensory message. | |
waited_msec | elapsed milli seconds sinc last sensory message. |
rcsc::SoccerAgentを実装しています。
bool rcsc::TrainerAgent::doCheckBall | ( | ) |
send check_ball command
bool rcsc::TrainerAgent::doLook | ( | ) |
send look command
bool rcsc::TrainerAgent::doTeamNames | ( | ) |
send team_name command
bool rcsc::TrainerAgent::doEye | ( | bool | on | ) |
send eye command on if true, send (eye on), else (eye off)
bool rcsc::TrainerAgent::doEar | ( | bool | on | ) |
send ear command on if true, send (ear on), else (ear off)
bool rcsc::TrainerAgent::doKickOff | ( | ) |
send start command to kickoff the game
send ball move command
pos | new position | |
vel | new velocity |
bool rcsc::TrainerAgent::doMovePlayer | ( | const std::string & | teamname, | |
const int | unum, | |||
const Vector2D & | pos | |||
) |
send player move command
teamname | target player's team name | |
unum | target player's uniform number | |
pos | new position |
bool rcsc::TrainerAgent::doMovePlayer | ( | const std::string & | teamname, | |
const int | unum, | |||
const Vector2D & | pos, | |||
const AngleDeg & | angle | |||
) |
send player move command
teamname | target player's team name | |
unum | target player's uniform number | |
pos | new position | |
angle | new body angle |
bool rcsc::TrainerAgent::doRecover | ( | ) |
send recover command
bool rcsc::TrainerAgent::doChangeMode | ( | const PlayMode | mode | ) |
send playmode change command
mode | new playmode Id |
bool rcsc::TrainerAgent::doChangePlayerType | ( | const std::string & | teamname, | |
const int | unum, | |||
const int | type | |||
) |
send change_player_type command
teamname | target player's team name | |
unum | target player's uniform number | |
type | new player type Id |
bool rcsc::TrainerAgent::doSay | ( | const std::string & | msg | ) |
send say command (coach language)
virtual void rcsc::TrainerAgent::actionImpl | ( | ) | [protected, pure virtual] |
pure virtual method. register decision.
This method is used to set trainer's action. This method is called from action(). So, do *NOT* call this method by yourself.