32#ifndef RCSC_COACH_COACH_AGENT_H
33#define RCSC_COACH_COACH_AGENT_H
49class CoachAudioSensor;
51class GlobalVisualSensor;
52class SayMessageParser;
65 std::unique_ptr< Impl > M_impl;
229 void parse(
const char * msg );
306 const int waited_msec );
abstract clang message
Definition: clang_message.h:46
command line parser
Definition: cmd_line_parser.h:49
abstract coach agent class
Definition: coach_agent.h:59
virtual ~CoachAgent()
delete dynamic allocated memory
virtual void handleInitMessage()
this method is called just after analyzing init message. Do NOT call this method by yourself.
Definition: coach_agent.h:348
bool doChangePlayerTypes(const std::vector< std::pair< int, int > > &types)
send change_player_types command
virtual bool initImpl(CmdLineParser &cmd_parser)
analyze command line options
bool doEye(bool on)
send eye command
const CoachVisualSensor & visualSensor() const
get visual sensor.
const CoachConfig & config() const
finalize all things when the process exits
Definition: coach_agent.h:105
void removeSayMessageParser(const char header)
remove registered parser object
virtual void handlePlayerParam()
this method is called just after analyzing player_param message. Do NOT call this method by yourself.
Definition: coach_agent.h:364
bool doCheckBall()
send check_ball command
virtual void handleMessageOffline()
handle offline client log messages in offline client mode.
CoachWorldModel M_worldmodel
internal memory of field status
Definition: coach_agent.h:76
virtual void handleServerParam()
this method is called just after analyzing server_param message. Do NOT call this method by yourself.
Definition: coach_agent.h:356
virtual void actionImpl()=0
pure virtual method. the decision making procedure implemented by team developper....
virtual void handleMessage()
handle server message event
bool doLook()
send look command
bool doTeamGraphic(const int x, const int y, const TeamGraphic &team_graphic)
send team_graphic command
const CoachAudioSensor & audioSensor() const
get audio sensor
bool removeFreeformMessage(const std::string &type)
remove the registered say message if exist
virtual void handleActionStart()
This method is called at the top of action(). Do not call this method by yourself.
Definition: coach_agent.h:332
virtual bool handleStart()
handle start event
virtual std::shared_ptr< AbstractClient > createConsoleClient()
create a client object (online or offline) according to the command line option.
CoachDebugClient M_debug_client
debug client interface
Definition: coach_agent.h:73
virtual void handlePlayerType()
this method is called just after analyzing player_type message. Do NOT call this method by yourself.
Definition: coach_agent.h:372
void addSayMessageParser(SayMessageParser *parser)
register new say message parser object
virtual bool handleStartOffline()
handle start event in offline client mode.
void doSendCLang(const CLangMessage *msg)
set clang message to the queue
void finalize()
finalize program process
CoachConfig M_config
configuration parameter set
Definition: coach_agent.h:70
virtual void handleActionEnd()
This method is called at the end of action() but before the debug output. Do not call this method by ...
Definition: coach_agent.h:340
bool doChangePlayerType(const int unum, const int type)
send change_player_type command
virtual void handleTimeout(const int timeout_count, const int waited_msec)
handle timeout event
virtual void handleExit()
handle exit event
CoachDebugClient & debugClient()
get debug client interface
Definition: coach_agent.h:115
bool doTeamNames()
send team_name command
const CoachWorldModel & world() const
get field status
Definition: coach_agent.h:124
void addFreeformMessage(FreeformMessage::Ptr message)
add freeform message to the message queue.
CoachAgent()
init member variables
const std::set< TeamGraphic::Index > & teamGraphicOKSet() const
get team_graphic ok flags
players' communication message handler class
Definition: coach_audio_sensor.h:53
abstract coach command class
Definition: coach_command.h:48
coach configuration parameters
Definition: coach_config.h:47
Definition: coach_debug_client.h:50
visual sensor for coach/trainer
Definition: coach_visual_sensor.h:49
world world for coach
Definition: coach_world_model.h:58
abstract player's say message parser
Definition: say_message_parser.h:50
abstract soccer agent class
Definition: soccer_agent.h:54
team graphic data management class
Definition: team_graphic.h:46
coach configuration Header File
interface for visual debug server Header File
coach/trainer world model class Header File
abstract soccer agent class Header File.
team graphic data class Header File