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::CoachVisualSensor Class Reference

visual sensor for coach/trainer More...

#include <coach_visual_sensor.h>

Public Member Functions

 CoachVisualSensor ()
 init member variable
 
 ~CoachVisualSensor ()
 nothing to do
 
const GameTimetime () const
 get updated time More...
 
const std::string & teamNameLeft () const
 get an analyzed left team name More...
 
const std::string & teamNameRight () const
 get an analyzed right team name More...
 
const CoachBallObjectball () const
 get analyzed ball info More...
 
const std::vector< CoachPlayerObject > & players () const
 get seen players More...
 
void parse (const char *msg, const double &version, const GameTime &current)
 analyze see message More...
 
std::ostream & print (std::ostream &os) const
 put data to the output stream More...
 

Detailed Description

visual sensor for coach/trainer

Member Function Documentation

◆ ball()

const CoachBallObject & rcsc::CoachVisualSensor::ball ( ) const
inline

get analyzed ball info

Returns
const reference to the analyzed data

◆ parse()

void rcsc::CoachVisualSensor::parse ( const char *  msg,
const double &  version,
const GameTime current 
)

analyze see message

Parameters
msgserver raw message
versionclient version
currentcurrent game time

◆ players()

const std::vector< CoachPlayerObject > & rcsc::CoachVisualSensor::players ( ) const
inline

get seen players

Returns
const reference to the player container

◆ print()

std::ostream & rcsc::CoachVisualSensor::print ( std::ostream &  os) const

put data to the output stream

Parameters
osreference to the output stream
Returns
reference to the output stream

◆ teamNameLeft()

const std::string & rcsc::CoachVisualSensor::teamNameLeft ( ) const
inline

get an analyzed left team name

Returns
const reference to the string variable

◆ teamNameRight()

const std::string & rcsc::CoachVisualSensor::teamNameRight ( ) const
inline

get an analyzed right team name

Returns
const reference to the string variable

◆ time()

const GameTime & rcsc::CoachVisualSensor::time ( ) const
inline

get updated time

Returns
const reference to the game time object

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