player's parsed visual info holder
More...
#include <visual_sensor.h>
|
| enum | ObjectType {
Obj_Goal
, Obj_Goal_Behind
, Obj_Marker
, Obj_Marker_Behind
,
Obj_Line
, Obj_Ball
, Obj_Player
, Obj_Unknown
} |
| | seen object type
|
| |
| enum | PlayerInfoType {
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::unordered_map< std::string, MarkerID > | MarkerMap |
| |
|
typedef std::vector< BallT > | BallCont |
| | observed ball container
|
| |
|
typedef std::list< MarkerT > | MarkerCont |
| | observed marker container
|
| |
|
typedef std::list< LineT > | LineCont |
| | observed line container
|
| |
|
typedef std::list< PlayerT > | PlayerCont |
| | observed player container
|
| |
|
|
static const double | DIST_ERR |
| | error value
|
| |
|
static const double | DIR_ERR |
| | error value
|
| |
player's parsed visual info holder
◆ balls()
| const BallCont & rcsc::VisualSensor::balls |
( |
| ) |
const |
|
inline |
get observed ball info
- Returns
- const reference to the ball container
◆ behindMarkers()
| const MarkerCont & rcsc::VisualSensor::behindMarkers |
( |
| ) |
const |
|
inline |
get observed behind marker(flag) info
- Returns
- const reference to the marker container
◆ lines()
| const LineCont & rcsc::VisualSensor::lines |
( |
| ) |
const |
|
inline |
get observed line info
- Returns
- const reference to the line container
◆ markers()
| const MarkerCont & rcsc::VisualSensor::markers |
( |
| ) |
const |
|
inline |
get observed marker(flag) info
- Returns
- const reference to the marker container
◆ opponents()
| const PlayerCont & rcsc::VisualSensor::opponents |
( |
| ) |
const |
|
inline |
get observed opponent info
- Returns
- const reference to the player container
◆ parse()
| void rcsc::VisualSensor::parse |
( |
const char * |
msg, |
|
|
const std::string & |
team_name, |
|
|
const double & |
version, |
|
|
const GameTime & |
current |
|
) |
| |
analyze visual message and store analyzed data.
- Parameters
-
| msg | message string |
| team_name | our team name |
| version | rcssserver protocol version |
| current | received game time. |
◆ print()
| std::ostream & rcsc::VisualSensor::print |
( |
std::ostream & |
os | ) |
|
put data to ostream
- Parameters
-
| os | reference to the output stream |
- Returns
- reference to the output stream
◆ teammates()
| const PlayerCont & rcsc::VisualSensor::teammates |
( |
| ) |
const |
|
inline |
get observed teammate info
- Returns
- const reference to the player container
◆ theirTeamName()
| const std::string & rcsc::VisualSensor::theirTeamName |
( |
| ) |
const |
|
inline |
get observed opponent team name
- Returns
- team name string
◆ time()
| const GameTime & rcsc::VisualSensor::time |
( |
| ) |
const |
|
inline |
get last updated time
- Returns
- game time object
◆ unknownOpponents()
| const PlayerCont & rcsc::VisualSensor::unknownOpponents |
( |
| ) |
const |
|
inline |
get observed unknown opponent info
- Returns
- const reference to the player container
◆ unknownPlayers()
| const PlayerCont & rcsc::VisualSensor::unknownPlayers |
( |
| ) |
const |
|
inline |
get observed completely unknown player info
- Returns
- const reference to the player container
◆ unknownTeammates()
| const PlayerCont & rcsc::VisualSensor::unknownTeammates |
( |
| ) |
const |
|
inline |
get observed unknown teammate info
- Returns
- const reference to the player container
The documentation for this class was generated from the following file: