#include <fullstate_sensor.h>
Public 型 | |
typedef std::vector< PlayerT > | PlayerCont |
Public メソッド | |
void | parse (const char *msg, const double &version, const GameTime ¤t) |
parse server message | |
void | reverse () |
reverse the coordinate system | |
const GameTime & | time () const |
get updated time | |
const BallT & | ball () const |
get analyzed ball data | |
const PlayerCont & | leftTeam () const |
get analyzed left team data | |
const PlayerCont & | rightTeam () const |
get analyzed right team data | |
int | leftScore () const |
get left team score | |
int | rightScore () const |
get right team score | |
std::ostream & | print (std::ostream &os) const |
put all fullstate info to stream | |
構成 | |
struct | BallT |
fullstate ball info [詳細] | |
struct | PlayerT |
fullstate player info [詳細] |
void rcsc::FullstateSensor::parse | ( | const char * | msg, | |
const double & | version, | |||
const GameTime & | current | |||
) |
parse server message
msg | server message | |
version | client version | |
current | received game time |
const GameTime& rcsc::FullstateSensor::time | ( | ) | const [inline] |
get updated time
const BallT& rcsc::FullstateSensor::ball | ( | ) | const [inline] |
get analyzed ball data
const PlayerCont& rcsc::FullstateSensor::leftTeam | ( | ) | const [inline] |
get analyzed left team data
const PlayerCont& rcsc::FullstateSensor::rightTeam | ( | ) | const [inline] |
get analyzed right team data
int rcsc::FullstateSensor::leftScore | ( | ) | const [inline] |
get left team score
int rcsc::FullstateSensor::rightScore | ( | ) | const [inline] |
get right team score
std::ostream & rcsc::FullstateSensor::print | ( | std::ostream & | os | ) | const |
put all fullstate info to stream
os | reference to output stream |