/** * Copyright (c) 2011 Aldebaran Robotics */ #ifndef HELLOWORLD_H #define HELLOWORLD_H #include #include namespace AL { // This is a forward declaration of AL:ALBroker which // avoids including in this header class ALBroker; } /** * A simple example module that says "Hello world" using * text to speech, or prints to the log if we can't find TTS * * This class inherits AL::ALModule. This allows it to bind methods * and be run as a remote executable or as a plugin within NAOqi */ class HelloWorld : public AL::ALModule { public: HelloWorld(boost::shared_ptr pBroker, const std::string& pName); virtual ~HelloWorld(); /** Overloading ALModule::init(). * This is called right after the module has been loaded */ virtual void init(); /** * Make Nao say "Hello world" or just print a message to * the console if not connected to a robot. */ void sayHello(); /** * Make Nao say a sentence given in argument. */ void sayText(const std::string& toSay); /** * Make Nao say a sentence and return its length. */ int sayTextAndReturnLength(const std::string &toSay); }; #endif // HELLOWORLD_H