Fawkes API
Fawkes Development Version
|
23 #include "broker_thread.h"
25 #include "naoqi_broker.h"
27 #include <alcommon/albrokermanager.h>
28 #include <alcore/alerror.h>
47 :
Thread(
"NaoQiBrokerThread",
Thread::OPMODE_WAITFORWAKEUP),
60 if (fawkes::naoqi::broker) {
61 broker_ = fawkes::naoqi::broker;
64 throw Exception(
"NaoQi broker not set, embedding of NaoQi "
65 "not implemented, yet");
virtual void loop()
Code to execute in the thread.
Thread aspect provide a new aspect.
const char * name() const
Get name of thread.
virtual void finalize()
Finalize the thread.
Logger * logger
This is the Logger member used to access the logger.
Fawkes library namespace.
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.
Thread class encapsulation of pthreads.
virtual void log_debug(const char *component, const char *format,...)=0
Log debug message.
NaoQiBrokerThread()
Constructor.
Base class for exceptions in Fawkes.