23 #include "broker_thread.h" 24 #include "naoqi_broker.h" 31 #include <alcommon/albrokermanager.h> 32 #include <alcore/alerror.h> 46 :
Thread(
"NaoQiBrokerThread",
Thread::OPMODE_WAITFORWAKEUP),
61 if (fawkes::naoqi::broker) {
62 __broker = fawkes::naoqi::broker;
65 throw Exception(
"NaoQi broker not set, embedding of NaoQi " 66 "not implemented, yet");
Fawkes library namespace.
virtual void finalize()
Finalize the thread.
NaoQiBrokerThread()
Constructor.
Thread class encapsulation of pthreads.
Logger * logger
This is the Logger member used to access the logger.
virtual void loop()
Code to execute in the thread.
Base class for exceptions in Fawkes.
const char * name() const
Get name of thread.
Thread aspect provide a new aspect.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
void set_naoqi_broker(AL::ALPtr< AL::ALBroker > naoqi_broker)
Set the NaoQi broker to use for aspect initialization.
virtual ~NaoQiBrokerThread()
Destructor.
virtual void init()
Initialize the thread.