26 #define CASE_STRING(x) \
49 default:
return "Unknown MSL Gamestate";
66 default:
return "Unknown SPL Gamestate";
82 default:
return "Unknown Team";
96 default:
return "Unknown Goal Color";
110 default:
return "Unknown Half";
133 default:
return "Unknown Penalty";
Fawkes library namespace.
const char * worldinfo_gamestate_goalcolor_tostring(worldinfo_gamestate_goalcolor_t goal_color)
Convert goal color to a string.
worldinfo_gamestate_goalcolor_t
Goal color.
@ GOAL_YELLOW
Yellow goal.
const char * worldinfo_penalty_tostring(worldinfo_penalty_t penalty)
Convert penalty to a string.
const char * worldinfo_msl_gamestate_tostring(worldinfo_msl_gamestate_t gamestate)
Convert MSL gamestate to a string.
const char * worldinfo_gamestate_half_tostring(worldinfo_gamestate_half_t half)
Convert half time to a string.
const char * worldinfo_gamestate_team_tostring(worldinfo_gamestate_team_t team)
Convert gamestate team to a string.
worldinfo_msl_gamestate_t
Game states for RoboCup MSL.
@ GS_CORNER_KICK
Corner kick.
@ GS_PENALTY
Penalty kick.
@ GS_FROZEN
Frozen, nothing moves.
@ GS_DROP_BALL
Referee drops ball, both teams can wrestle for the ball.
@ GS_PLAY
Play, normal play.
worldinfo_gamestate_half_t
Game time half.
@ HALF_SECOND
Second half.
worldinfo_gamestate_team_t
Team.
@ TEAM_MAGENTA
Magenta team.
@ TEAM_NONE
No team, not team-specific.
worldinfo_penalty_t
Robot penalty code.
@ PENALTY_OBSTRUCTION
Robot obstructs path way.
@ PENALTY_DAMAGE
Robot is damaged.
@ PENALTY_MANUAL
Manually penalized.
@ PENALTY_BALL_HOLDING
Robot hold the ball.
@ PENALTY_NONE
No penalty.
@ PENALTY_ILLEGAL_DEFENSE
Illegal defense.
@ PENALTY_REQ_FOR_PICKUP
Robot was requested for pick up.
@ PENALTY_GOALIE_PUSHING
Robot pushed the goalie.
@ PENALTY_PLAYER_PUSHING
Robot pushed a player.
@ PENALTY_ILLEGAL_DEFENDER
Robot is an illegal defender.
@ PENALTY_LEAVING
Robot has to leave.
const char * worldinfo_spl_gamestate_tostring(worldinfo_spl_gamestate_t gamestate)
Convert MSL gamestate to a string.
worldinfo_spl_gamestate_t
Game states for RoboCup SPL.
@ GS_SPL_SET
Wait for kick-off.
@ GS_SPL_FINISHED
Corner kick.
@ GS_SPL_INITIAL
Initial setup phase.
@ GS_SPL_READY
Move to kick-off positions.