#include <coach_agent.h>
rcsc::CoachAgentに対する継承グラフ
Public メソッド | |
CoachAgent () | |
init member variables | |
virtual | ~CoachAgent () |
delete dynamic allocated memory | |
const CoachConfig & | config () const |
get configuration set | |
const GlobalWorldModel & | world () const |
get field status | |
const GlobalVisualSensor & | visualSensor () const |
get visual sensor. | |
const CoachAudioSensor & | audioSensor () const |
get audio sensor | |
const std::set< TeamGraphic::Index > & | teamGraphicOKSet () const |
get team_graphic ok flags | |
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 | doChangePlayerType (const int unum, const int type) |
send change_player_type command | |
bool | doChangePlayerTypes (const std::vector< std::pair< int, int > > &types) |
send change_player_types command | |
bool | doSayFreeform (const std::string &msg) |
send freeform message by say command | |
bool | doTeamGraphic (const int x, const int y, const TeamGraphic &team_graphic) |
send team_graphic command | |
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 | |
void | addSayMessageParser (boost::shared_ptr< SayMessageParser > parser) |
register new say message parser object | |
void | removeSayMessageParser (const char header) |
remove registered parser object | |
virtual void | actionImpl ()=0 |
pure virtual method. register decision. | |
Protected 変数 | |
CoachConfig | M_config |
configuration parameter set | |
GlobalWorldModel | M_worldmodel |
internal memory of field status |
const CoachConfig& rcsc::CoachAgent::config | ( | ) | const [inline] |
get configuration set
const GlobalWorldModel& rcsc::CoachAgent::world | ( | ) | const [inline] |
get field status
const GlobalVisualSensor & rcsc::CoachAgent::visualSensor | ( | ) | const |
get visual sensor.
const CoachAudioSensor & rcsc::CoachAgent::audioSensor | ( | ) | const |
get audio sensor
const std::set< TeamGraphic::Index >& rcsc::CoachAgent::teamGraphicOKSet | ( | ) | const [inline] |
get team_graphic ok flags
bool rcsc::CoachAgent::initImpl | ( | CmdLineParser & | cmd_parser | ) | [protected, virtual] |
analyze command line options
cmd_parser | command lien parser object |
rcsc::SoccerAgentを実装しています。
bool rcsc::CoachAgent::handleStart | ( | ) | [protected, virtual] |
handle start event
rcsc::SoccerAgentを実装しています。
void rcsc::CoachAgent::handleMessage | ( | ) | [protected, virtual] |
void rcsc::CoachAgent::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を実装しています。
void rcsc::CoachAgent::addSayMessageParser | ( | boost::shared_ptr< SayMessageParser > | parser | ) | [protected] |
register new say message parser object
parser | pointer to the say mesage parser. |
void rcsc::CoachAgent::removeSayMessageParser | ( | const char | header | ) | [protected] |
remove registered parser object
header | say message header character |
bool rcsc::CoachAgent::doCheckBall | ( | ) |
send check_ball command
bool rcsc::CoachAgent::doLook | ( | ) |
send look command
bool rcsc::CoachAgent::doTeamNames | ( | ) |
send team_name command
bool rcsc::CoachAgent::doEye | ( | bool | on | ) |
send eye command on if true, send (eye on), else (eye off)
bool rcsc::CoachAgent::doChangePlayerType | ( | const int | unum, | |
const int | type | |||
) |
send change_player_type command
unum | target player's uniform number | |
type | new player type Id |
bool rcsc::CoachAgent::doChangePlayerTypes | ( | const std::vector< std::pair< int, int > > & | types | ) |
send change_player_types command
types | player change pair list |
bool rcsc::CoachAgent::doSayFreeform | ( | const std::string & | msg | ) |
send freeform message by say command
bool rcsc::CoachAgent::doTeamGraphic | ( | const int | x, | |
const int | y, | |||
const TeamGraphic & | team_graphic | |||
) |
send team_graphic command
virtual void rcsc::CoachAgent::actionImpl | ( | ) | [protected, pure virtual] |
pure virtual method. register decision.
This method is used to set coach's action. This method is called from action(). So, do *NOT* call this method by yourself.