Fawkes API  Fawkes Development Version
NaoFawkesModule Class Reference

Nao Fawkes Module. More...

List of all members.

Public Member Functions

 NaoFawkesModule (AL::ALPtr< AL::ALBroker > broker, const std::string &name)
 Constructor.
virtual ~NaoFawkesModule ()
 Destructor.
void play_sound (const char *filename)
 Play startup sound.

Detailed Description

Nao Fawkes Module.

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


Constructor & Destructor Documentation

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::runtime::InitOptions::plugin_module_flags(), fawkes::Module::MODULE_FLAGS_DEFAULT, fawkes::Module::MODULE_NODELETE, fawkes::Exception::begin(), and fawkes::Exception::end().

virtual NaoFawkesModule::~NaoFawkesModule ( ) [inline, virtual]

Destructor.

Stops the Fawkes main thread and cleans up the embedded Fawkes.

Definition at line 112 of file naofawkes_module.cpp.


Member Function Documentation

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: