Fawkes API
Fawkes Development Version
|
24 #ifndef _TOOLS_REFBOXREP_SPL_H_
25 #define _TOOLS_REFBOXREP_SPL_H_
28 #include "processor.h"
40 #define SPL_HEADER_SIZE 4
41 #define SPL_MAX_NUM_PLAYERS 11
68 char header[SPL_HEADER_SIZE];
88 unsigned short int broadcast_port,
89 unsigned int team_number,
90 unsigned int player_number);
102 std::shared_ptr<fawkes::DatagramSocket> s_;
108 uint8_t team_number_;
109 uint8_t player_number_;
SPL RefBox protocol team info struct.
uint8_t goal_color
colour of the goal
uint32_t secs_remaining
estimate of number of seconds remaining in the half
void refbox_process()
Process incoming refbox communication.
uint32_t version
version of the data structure
SPL league refbox repeater.
uint8_t secondary_state
Extra state information - (STATE2_NORMAL, STATE2_PENALTYSHOOT, etc)
SplRefBoxProcessor(fawkes::Logger *logger, unsigned short int broadcast_port, unsigned int team_number, unsigned int player_number)
Constructor.
uint16_t drop_in_time
number of seconds passed since the last drop in.
uint8_t score
team's score
bool check_connection()
Check if the connection is alive and reconnect.
uint8_t players_per_team
The number of players on a team.
Fawkes library namespace.
Referee Box Communication Processor.
uint8_t state
state of the game (STATE_READY, STATE_PLAYING, etc.)
~SplRefBoxProcessor()
Destructor.
uint8_t first_half
1 = game in first half, 0 otherwise
SPL RefBox protocol game control struct.
uint8_t team_number
unique team number
SPL RefBox protocol robot info struct.
uint16_t secs_till_unpenalized
estimate of time till unpenalised
uint16_t penalty
penalty state of the player
uint8_t drop_in_team
team that caused last drop in
uint8_t kick_off_team
the next team to kick off
uint8_t team_color
colour of the team