18 #ifndef __ICUB_STARTSPEECH_MOD_H__
19 #define __ICUB_STARTSPEECH_MOD_H__
21 #include <yarp/os/BufferedPort.h>
22 #include <yarp/os/RFModule.h>
23 #include <yarp/os/Network.h>
24 #include <yarp/os/Thread.h>
25 #include <yarp/os/PeriodicThread.h>
26 #include <yarp/os/Time.h>
27 #include <yarp/os/Stamp.h>
28 #include <yarp/sig/Vector.h>
29 #include <yarp/sig/Image.h>
30 #include <yarp/os/RpcClient.h>
40 class STARTManager :
public yarp::os::BufferedPort<yarp::os::Bottle>
44 std::string moduleName;
45 std::string inSpeechPortName;
46 std::string outSTARTPortName;
48 std::string outSTARTUrlName;
50 yarp::os::Port portURL;
52 yarp::os::BufferedPort<yarp::os::Bottle> speechInPort;
53 yarp::os::BufferedPort<yarp::os::Bottle> startOutPort;
62 STARTManager(
const std::string &moduleName );
67 void onRead( yarp::os::Bottle &bot );
70 static bool aZCheck(
char c)
80 class STARTModule:
public yarp::os::RFModule
83 std::string moduleName;
84 std::string handlerPortName;
85 yarp::os::RpcServer rpcPort;
88 STARTManager *startManager;
93 bool configure(yarp::os::ResourceFinder &rf);
94 bool interruptModule();