23 #ifndef __PLUGINS_PLAYER_PLAYERC_THREAD_H_ 24 #define __PLUGINS_PLAYER_PLAYERC_THREAD_H_ 26 #include <core/threading/thread.h> 27 #include <aspect/blocked_timing.h> 28 #include <aspect/logging.h> 29 #include <aspect/configurable.h> 30 #include <aspect/clock.h> 31 #include <aspect/blackboard.h> 32 #include <aspect/network.h> 44 class ObjectPositionInterface;
63 typedef std::map<std::string, PlayerCc::ClientProxy *>
ProxyMap;
66 typedef std::list<PlayerProxyFawkesInterfaceMapper *>
MapperList;
71 virtual void finalize();
74 void sync_fawkes_to_player();
77 protected:
virtual void run() { Thread::run(); }
80 void open_fawkes_interfaces();
81 void open_player_proxies();
82 void create_mappers();
84 void close_fawkes_interfaces();
85 void close_player_proxies();
88 PlayerCc::PlayerClient *__client;
90 std::string __cfg_player_host;
91 unsigned int __cfg_player_port;
Thread aspect to access to BlackBoard.
Thread aspect that allows to obtain the current time from the clock.
std::list< PlayerProxyFawkesInterfaceMapper * > MapperList
Map for proxy-interface mappers.
Fawkes library namespace.
std::map< std::string, fawkes::Interface * > InterfaceMap
Map for Fawkes interfaces.
Thread aspect for network communication.
Thread class encapsulation of pthreads.
Thread aspect to use blocked timing.
Player proxy to Fawkes interface mapper interface.
virtual void run()
Stub to see name in backtrace for easier debugging.
Thread aspect to log output.
std::map< std::string, PlayerCc::ClientProxy * > ProxyMap
Map for Player interfaces.
Thread aspect to access configuration data.