#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< BallT > | BallCont |
typedef std::list< MarkerT > | MarkerCont |
typedef std::list< LineT > | LineCont |
typedef std::list< PlayerT > | PlayerCont |
Public メソッド | |
VisualSensor () | |
create marker map | |
void | parse (const char *msg, const char *team_name, const double &version, const GameTime ¤t) |
analyze visual message and store analyzed data. | |
const std::string & | opponentTeamName () const |
get observed opponent team name | |
const GameTime & | time () 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 [詳細] |
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
const GameTime& rcsc::VisualSensor::time | ( | ) | const [inline] |
get last updated time
const BallCont& rcsc::VisualSensor::balls | ( | ) | const [inline] |
get observed ball info
const MarkerCont& rcsc::VisualSensor::markers | ( | ) | const [inline] |
get observed marker(flag) info
const MarkerCont& rcsc::VisualSensor::behindMarkers | ( | ) | const [inline] |
get observed behind marker(flag) info
const LineCont& rcsc::VisualSensor::lines | ( | ) | const [inline] |
get observed line info
const PlayerCont& rcsc::VisualSensor::teammates | ( | ) | const [inline] |
get observed teammate info
const PlayerCont& rcsc::VisualSensor::unknownTeammates | ( | ) | const [inline] |
get observed unknown teammate info
const PlayerCont& rcsc::VisualSensor::opponents | ( | ) | const [inline] |
get observed opponent info
const PlayerCont& rcsc::VisualSensor::unknownOpponents | ( | ) | const [inline] |
get observed unknown opponent info
const PlayerCont& rcsc::VisualSensor::unknownPlayers | ( | ) | const [inline] |
get observed completely unknown player info
std::ostream & rcsc::VisualSensor::print | ( | std::ostream & | os | ) |
put data to ostream
os | reference to the output stream |