LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::TrainerMoveBallCommand Class Reference

command to move ball More...

#include <trainer_command.h>

Inheritance diagram for rcsc::TrainerMoveBallCommand:
Inheritance graph
[legend]
Collaboration diagram for rcsc::TrainerMoveBallCommand:
Collaboration graph
[legend]

Public Member Functions

 TrainerMoveBallCommand (const double &x, const double &y)
 construct with move target point. no velocity. More...
 
 TrainerMoveBallCommand (const Vector2D &pos)
 construct with move target point. no velocity. More...
 
 TrainerMoveBallCommand (const double &x, const double &y, const double &vx, const double &vy)
 construct with move target point and ball velocity. More...
 
 TrainerMoveBallCommand (const Vector2D &pos, const Vector2D &vel)
 construct with move target point. 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...
 
- Public Member Functions inherited from rcsc::TrainerCommand
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

- Public Types inherited from rcsc::TrainerCommand
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...
 
- Protected Member Functions inherited from rcsc::TrainerCommand
 TrainerCommand ()
 constructor is protected because this is abstract class.
 

Detailed Description

command to move ball

Format:
<- (move (ball) <x> <y>[ <angle> <vx> <vy>])
Response:
-> (ok move)
-> (error illegal_command_form)

Constructor & Destructor Documentation

◆ TrainerMoveBallCommand() [1/4]

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const double &  x,
const double &  y 
)

construct with move target point. no velocity.

Parameters
xmove target x
ymove target y

◆ TrainerMoveBallCommand() [2/4]

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const Vector2D pos)
explicit

construct with move target point. no velocity.

Parameters
posmove target

◆ TrainerMoveBallCommand() [3/4]

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const double &  x,
const double &  y,
const double &  vx,
const double &  vy 
)

construct with move target point and ball velocity.

Parameters
xmove target x
ymove target y
vxvelocity x after move
vyvelocity y after move

◆ TrainerMoveBallCommand() [4/4]

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const Vector2D pos,
const Vector2D vel 
)

construct with move target point. no velocity.

Parameters
posmove target position
velvelocity after move

Member Function Documentation

◆ name()

std::string rcsc::TrainerMoveBallCommand::name ( ) const
inlinevirtual

get command name

Returns
command name string

Implements rcsc::TrainerCommand.

◆ toCommandString()

std::ostream & rcsc::TrainerMoveBallCommand::toCommandString ( std::ostream &  to) const
virtual

put command string to ostream

Parameters
toreferent to the output stream
Returns
referenct to the output stream

Implements rcsc::TrainerCommand.

◆ type()

Type rcsc::TrainerMoveBallCommand::type ( ) const
inlinevirtual

get command type

Returns
command type Id

Implements rcsc::TrainerCommand.


The documentation for this class was generated from the following file: