Fawkes API
Fawkes Development Version
|
23 #ifndef _PLUGINS_PLAYER_PLAYERC_THREAD_H_
24 #define _PLUGINS_PLAYER_PLAYERC_THREAD_H_
26 #include <aspect/blackboard.h>
27 #include <aspect/blocked_timing.h>
28 #include <aspect/clock.h>
29 #include <aspect/configurable.h>
30 #include <aspect/logging.h>
31 #include <aspect/network.h>
32 #include <core/threading/thread.h>
44 class ObjectPositionInterface;
62 typedef std::map<std::string, PlayerCc::ClientProxy *>
ProxyMap;
65 typedef std::list<PlayerProxyFawkesInterfaceMapper *>
MapperList;
84 void open_fawkes_interfaces();
85 void open_player_proxies();
86 void create_mappers();
88 void close_fawkes_interfaces();
89 void close_player_proxies();
92 PlayerCc::PlayerClient *client_;
94 std::string cfg_player_host_;
95 unsigned int cfg_player_port_;
PlayerClientThread()
Constructor.
virtual void run()
Stub to see name in backtrace for easier debugging.
virtual void loop()
Code to execute in the thread.
std::map< std::string, fawkes::Interface * > InterfaceMap
Map for Fawkes interfaces.
virtual void finalize()
Finalize the thread.
Thread aspect to use blocked timing.
Thread aspect to access to BlackBoard.
Fawkes library namespace.
Thread aspect to log output.
std::map< std::string, PlayerCc::ClientProxy * > ProxyMap
Map for Player interfaces.
virtual void init()
Initialize the thread.
Thread class encapsulation of pthreads.
void sync_fawkes_to_player()
Sync Fawkes to player.
Thread aspect to access configuration data.
std::list< PlayerProxyFawkesInterfaceMapper * > MapperList
Map for proxy-interface mappers.
Player proxy to Fawkes interface mapper interface.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect for network communication.