クラス rcsc::VisualSensor

player's parsed visual info holder [詳細]

#include <visual_sensor.h>

すべてのメンバ一覧

Public 型

enum  ObjectType {
  Obj_Goal, Obj_Goal_Behind, Obj_Marker, Obj_Marker_Behind,
  Obj_Line, Obj_Ball, Obj_Player, Obj_Unknown
}
 seen object type
enum  PlayerType {
  Player_Teammate = 10, Player_Unknown_Teammate = 11, Player_Opponent = 20, Player_Unknown_Opponent = 21,
  Player_Unknown = 30, Player_Low_Mode, Player_Illegal
}
 seen player identification type
typedef std::vector< BallTBallCont
typedef std::list< MarkerTMarkerCont
typedef std::list< LineTLineCont
typedef std::list< PlayerTPlayerCont

Public メソッド

 VisualSensor ()
 create marker map
void parse (const char *msg, const char *team_name, const double &version, const GameTime &current)
 analyze visual message and store analyzed data.
const std::string & opponentTeamName () const
 get observed opponent team name
const GameTimetime () const
 get last updated time
const BallCont & balls () const
 get observed ball info
const MarkerCont & markers () const
 get observed marker(flag) info
const MarkerCont & behindMarkers () const
 get observed behind marker(flag) info
const LineCont & lines () const
 get observed line info
const PlayerCont & teammates () const
 get observed teammate info
const PlayerCont & unknownTeammates () const
 get observed unknown teammate info
const PlayerCont & opponents () const
 get observed opponent info
const PlayerCont & unknownOpponents () const
 get observed unknown opponent info
const PlayerCont & unknownPlayers () const
 get observed completely unknown player info
std::ostream & print (std::ostream &os)
 put data to ostream

Static Public 変数

static const double DIST_ERR
 error value
static const double DIR_ERR
 error value

構成

struct  BallT
 seen ball info [詳細]
struct  LineT
 seen line info [詳細]
struct  MarkerT
 seen marker flag info [詳細]
struct  MovableT
 seen movable object info [詳細]
struct  PlayerT
 seen player info [詳細]
struct  PolarT
 observable object info [詳細]


説明

player's parsed visual info holder


関数

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

analyze visual message and store analyzed data.

引数:
msg message string
team_name our team name
version rcssserver protocol version
current received game time.

const std::string& rcsc::VisualSensor::opponentTeamName (  )  const [inline]

get observed opponent team name

戻り値:
team name string

const GameTime& rcsc::VisualSensor::time (  )  const [inline]

get last updated time

戻り値:
game time object

const BallCont& rcsc::VisualSensor::balls (  )  const [inline]

get observed ball info

戻り値:
const reference to the ball container

const MarkerCont& rcsc::VisualSensor::markers (  )  const [inline]

get observed marker(flag) info

戻り値:
const reference to the marker container

const MarkerCont& rcsc::VisualSensor::behindMarkers (  )  const [inline]

get observed behind marker(flag) info

戻り値:
const reference to the marker container

const LineCont& rcsc::VisualSensor::lines (  )  const [inline]

get observed line info

戻り値:
const reference to the line container

const PlayerCont& rcsc::VisualSensor::teammates (  )  const [inline]

get observed teammate info

戻り値:
const reference to the player container

const PlayerCont& rcsc::VisualSensor::unknownTeammates (  )  const [inline]

get observed unknown teammate info

戻り値:
const reference to the player container

const PlayerCont& rcsc::VisualSensor::opponents (  )  const [inline]

get observed opponent info

戻り値:
const reference to the player container

const PlayerCont& rcsc::VisualSensor::unknownOpponents (  )  const [inline]

get observed unknown opponent info

戻り値:
const reference to the player container

const PlayerCont& rcsc::VisualSensor::unknownPlayers (  )  const [inline]

get observed completely unknown player info

戻り値:
const reference to the player container

std::ostream & rcsc::VisualSensor::print ( std::ostream &  os  ) 

put data to ostream

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:28 2008に生成されました。  doxygen 1.5.0