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>
44class 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_;
virtual void finalize()
Finalize the thread.
virtual void init()
Initialize the thread.
void sync_fawkes_to_player()
Sync Fawkes to player.
virtual void loop()
Code to execute in the thread.
std::map< std::string, fawkes::Interface * > InterfaceMap
Map for Fawkes interfaces.
PlayerClientThread()
Constructor.
virtual void run()
Stub to see name in backtrace for easier debugging.
std::map< std::string, PlayerCc::ClientProxy * > ProxyMap
Map for Player interfaces.
std::list< PlayerProxyFawkesInterfaceMapper * > MapperList
Map for proxy-interface mappers.
Player proxy to Fawkes interface mapper interface.
Thread aspect to access to BlackBoard.
Thread aspect to use blocked timing.
Thread aspect that allows to obtain the current time from the clock.
Thread aspect to access configuration data.
Thread aspect to log output.
Thread aspect for network communication.
Thread class encapsulation of pthreads.
Fawkes library namespace.