Fawkes API
Fawkes Development Version
|
Nao Fawkes Module. More...
Public Member Functions | |
NaoFawkesModule (AL::ALPtr< AL::ALBroker > broker, const std::string &name) | |
Constructor. More... | |
virtual | ~NaoFawkesModule () |
Destructor. More... | |
void | play_sound (const char *filename) |
Play startup sound. More... | |
Nao Fawkes Module.
This module is instantiated in NaoQi and embeds its own Fawkes instance.
Definition at line 48 of file naofawkes_module.cpp.
|
inline |
Constructor.
Initializes and starts the embedded Fawkes, and loads the nao plugin without precondition.
broker | NaoQi broker to use, will be forwarded to the nao plugin |
name | name of the module (no idea why NaoQi wants to pass it as a parameter) |
Definition at line 59 of file naofawkes_module.cpp.
References fawkes::Exception::begin(), fawkes::runtime::InitOptions::default_plugin(), fawkes::Exception::end(), fawkes::FawkesMainThread::full_start(), fawkes::runtime::InitOptions::load_plugins(), fawkes::runtime::InitOptions::loggers(), fawkes::Module::MODULE_FLAGS_DEFAULT, fawkes::Module::MODULE_NODELETE, fawkes::runtime::InitOptions::net_service_name(), and fawkes::runtime::InitOptions::plugin_module_flags().
|
inlinevirtual |
Destructor.
Stops the Fawkes main thread and cleans up the embedded Fawkes.
Definition at line 112 of file naofawkes_module.cpp.
References fawkes::Thread::cancel(), and fawkes::Thread::join().
|
inline |
Play startup sound.
filename | name of file to play |
Definition at line 123 of file naofawkes_module.cpp.