Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::TrainerCheckBallCommand Class Reference

Class used to represent the trainer command (check_ball). More...

Inheritance diagram for RS::TrainerCheckBallCommand:

Inheritance graph
[legend]
Collaboration diagram for RS::TrainerCheckBallCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

const std::string serverString () const
 Returns the server string that will execute the CheckBallCommand at the soccer server.

TrainerCheckBallCommand * clone () const
 Returns a new copy of the command.


Detailed Description

Class used to represent the trainer command (check_ball).

(check ball) Ask the soccerserver to check the position of the ball. Four positions are defined:

  1. in field
    The ball is within the boundaries of the field.
  2. goal l
    The ball is within the area assigned to the goal at the left side of the field.
  3. goal r
    The ball is within the area assigned to the goal at the right side of the field.
  4. out of field
    The ball is somewhere else.
Note that the states `goal l' and `goal r' do not necessary imply that the ball actually crossed the goal line. Possible replies by the soccerserver:
  1. (ok check ball TIME BALLPOSITION)
    BALLPOSITION will be one of the states specified above.

Unit:
Library
Revision
1.1
Author
frehe
Date
2006/09/06 18:03:46

Definition at line 80 of file TrainerCheckBallCommand.h.


Member Function Documentation

TrainerCheckBallCommand * RS::TrainerCheckBallCommand::clone   const [virtual]
 

Returns a new copy of the command.

REMEMBER TO DELETE IT, OTHERWISE YOU WILL HAVE A MEMORY LEAK!!!

Implements RS::TrainerCommand.

Definition at line 70 of file TrainerCheckBallCommand.cc.


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:25:11 2011 for RoboSoc by doxygen1.3-rc3