Fawkes API  Fawkes Development Version
NaoFawkesModule Class Reference

Nao Fawkes Module. More...

Inheritance diagram for NaoFawkesModule:

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...
 

Detailed Description

Nao Fawkes Module.

This module is instantiated in NaoQi and embeds its own Fawkes instance.

Definition at line 48 of file naofawkes_module.cpp.

Constructor & Destructor Documentation

◆ NaoFawkesModule()

NaoFawkesModule::NaoFawkesModule ( AL::ALPtr< AL::ALBroker >  broker,
const std::string &  name 
)
inline

Constructor.

Initializes and starts the embedded Fawkes, and loads the nao plugin without precondition.

Parameters
brokerNaoQi broker to use, will be forwarded to the nao plugin
namename 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().

◆ ~NaoFawkesModule()

virtual NaoFawkesModule::~NaoFawkesModule ( )
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().

Member Function Documentation

◆ play_sound()

void NaoFawkesModule::play_sound ( const char *  filename)
inline

Play startup sound.

Parameters
filenamename of file to play

Definition at line 123 of file naofawkes_module.cpp.


The documentation for this class was generated from the following file: