23 #ifndef __TOOL_WORLDINFO_VIEWER_BACKEND_THREAD_H_ 24 #define __TOOL_WORLDINFO_VIEWER_BACKEND_THREAD_H_ 26 #include <netcomm/worldinfo/handler.h> 27 #include <netcomm/utils/resolver.h> 28 #include <netcomm/dns-sd/avahi_thread.h> 29 #include <core/threading/thread.h> 35 class WorldInfoTransceiver;
36 class WorldInfoDataContainer;
45 const char* addr,
unsigned short port,
46 const char* key,
const char* iv );
50 Glib::Dispatcher& new_worldinfo_data();
51 Glib::Dispatcher& new_gamestate_data();
57 virtual void pose_rcvd(
const char *from_host,
58 float x,
float y,
float theta,
61 virtual void velocity_rcvd(
const char *from_host,
float vel_x,
62 float vel_y,
float vel_theta,
float *covariance );
64 virtual void ball_pos_rcvd(
const char *from_host,
65 bool visible,
int visibility_history,
66 float dist,
float pitch,
float yaw,
69 virtual void global_ball_pos_rcvd(
const char *from_host,
70 bool visible,
int visibility_history,
71 float x,
float y,
float z,
74 virtual void ball_velocity_rcvd(
const char *from_host,
75 float vel_x,
float vel_y,
float vel_z,
78 virtual void global_ball_velocity_rcvd(
const char *from_host,
79 float vel_x,
float vel_y,
float vel_z,
82 virtual void opponent_pose_rcvd(
const char *from_host,
unsigned int uid,
84 float *covarianceconst );
86 virtual void opponent_disapp_rcvd(
const char *from_host,
unsigned int uid );
88 virtual void gamestate_rcvd(
const char *from_host,
89 unsigned int game_state,
91 unsigned int score_cyan,
unsigned int score_magenta,
96 virtual void penalty_rcvd(
const char *from_host,
97 unsigned int player,
unsigned int penalty,
98 unsigned int seconds_remaining);
104 Glib::Dispatcher m_signal_new_worldinfo_data;
105 Glib::Dispatcher m_signal_new_gamestate_data;
108 unsigned short m_port;
Data container to store and exchange worldinfo data.
Class to send and receive world information.
float distance(float x1, float y1, float x2, float y2)
Get distance between two 2D cartesian coordinates.
Fawkes library namespace.
Thread class encapsulation of pthreads.
worldinfo_gamestate_half_t
Game time half.
Network name and address resolver.
worldinfo_gamestate_team_t
Team.
The backend thread of the worldinfo viewer application.
worldinfo_gamestate_goalcolor_t
Goal color.