00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __NETCOMM_WORLDINFO_HANDLER_H_
00025 #define __NETCOMM_WORLDINFO_HANDLER_H_
00026
00027 #include <netcomm/worldinfo/enums.h>
00028
00029 namespace fawkes {
00030
00031 class WorldInfoHandler
00032 {
00033 public:
00034 virtual ~WorldInfoHandler();
00035
00036 virtual void pose_rcvd(const char *from_host,
00037 float x, float y, float theta,
00038 float *covariance) = 0;
00039
00040 virtual void velocity_rcvd(const char *from_host, float vel_x,
00041 float vel_y, float vel_theta, float *covariance) = 0;
00042
00043 virtual void ball_pos_rcvd(const char *from_host,
00044 bool visible, int visibility_history,
00045 float dist, float bearing, float slope,
00046 float *covariance) = 0;
00047
00048 virtual void global_ball_pos_rcvd(const char *from_host,
00049 bool visible, int visibility_history,
00050 float x, float y, float z,
00051 float *covariance) = 0;
00052
00053 virtual void ball_velocity_rcvd(const char *from_host,
00054 float vel_x, float vel_y, float vel_z,
00055 float *covariance) = 0;
00056
00057 virtual void global_ball_velocity_rcvd(const char *from_host,
00058 float vel_x, float vel_y, float vel_z,
00059 float *covariance) = 0;
00060
00061 virtual void opponent_pose_rcvd(const char *from_host,
00062 unsigned int uid, float distance,
00063 float bearing, float *covariance) = 0;
00064
00065 virtual void opponent_disapp_rcvd(const char *from_host, unsigned int uid) = 0;
00066
00067 virtual void gamestate_rcvd(const char *from_host,
00068 unsigned int game_state,
00069 worldinfo_gamestate_team_t state_team,
00070 unsigned int score_cyan, unsigned int score_magenta,
00071 worldinfo_gamestate_team_t our_team,
00072 worldinfo_gamestate_goalcolor_t our_goal_color,
00073 worldinfo_gamestate_half_t half) = 0;
00074
00075 virtual void penalty_rcvd(const char *from_host,
00076 unsigned int player, unsigned int penalty,
00077 unsigned int seconds_remaining) = 0;
00078
00079 };
00080
00081 }
00082
00083
00084 #endif