LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
command to move player More...
#include <trainer_command.h>
Public Member Functions | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y, const AngleDeg &angle) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y, const AngleDeg &angle, const double &vx, const double &vy) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle, const double &vx, const double &vy) | |
construct with xy value, no angle, no velocity More... | |
TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle, const Vector2D &vel) | |
construct with xy value, no angle, no velocity More... | |
Type | type () const |
get command type More... | |
std::ostream & | toCommandString (std::ostream &to) const |
put command string to ostream More... | |
std::string | name () const |
get command name More... | |
![]() | |
virtual | ~TrainerCommand () |
virtual destructor, but nothing to do | |
virtual Type | type () const =0 |
get command type (pure virtual) More... | |
virtual std::ostream & | toCommandString (std::ostream &to) const =0 |
put command string to ostream (pure virtual) More... | |
virtual std::string | name () const =0 |
get command name (pure virtual) More... | |
Additional Inherited Members | |
![]() | |
enum | Type { INIT , CHECK_BALL , LOOK , TEAM_NAMES , EAR , EYE , START , CHANGE_MODE , MOVE , RECOVER , CHANGE_PLAYER_TYPE , SAY , COMPRESSION , DONE , ILLEGAL } |
trainer command type Id More... | |
![]() | |
TrainerCommand () | |
constructor is protected because this is abstract class. | |
command to move player
Format: <- (move (player <teamname> <unum>) <x> <y> [<angle> [<vx> <vy>]]) Response: -> (ok move) -> (error illegal_command_form)
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const double & | x, | ||
const double & | y | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
x | target point x |
y | target point y |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const Vector2D & | pos | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
pos | target point |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const double & | x, | ||
const double & | y, | ||
const AngleDeg & | angle | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
x | target point x |
y | target point y |
angle | player's body angle after move |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const Vector2D & | pos, | ||
const AngleDeg & | angle | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
pos | target point |
angle | player's body angle after move |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const double & | x, | ||
const double & | y, | ||
const AngleDeg & | angle, | ||
const double & | vx, | ||
const double & | vy | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
x | target point x |
y | target point y |
angle | player's body angle after move |
vx | player's velocity x after move |
vy | player's velocity y after move |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const Vector2D & | pos, | ||
const AngleDeg & | angle, | ||
const double & | vx, | ||
const double & | vy | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
pos | target point |
angle | player's body angle after move |
vx | player's velocity x after move |
vy | player's velocity y after move |
rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand | ( | const std::string & | team_name, |
const int | unum, | ||
const Vector2D & | pos, | ||
const AngleDeg & | angle, | ||
const Vector2D & | vel | ||
) |
construct with xy value, no angle, no velocity
team_name | target player's team name |
unum | target player's uniform number |
pos | target point |
angle | player's body angle after move |
vel | player's velocity after move |
|
inlinevirtual |
|
virtual |
put command string to ostream
to | referent to the output stream |
Implements rcsc::TrainerCommand.
|
inlinevirtual |