18#ifndef __ICUB_STARTASK_MOD_H__
19#define __ICUB_STARTASK_MOD_H__
25#include <yarp/os/BufferedPort.h>
26#include <yarp/os/RFModule.h>
27#include <yarp/os/Network.h>
28#include <yarp/os/Thread.h>
29#include <yarp/os/PeriodicThread.h>
30#include <yarp/os/Time.h>
31#include <yarp/os/Stamp.h>
34class STARTManager :
public yarp::os::BufferedPort<yarp::os::Bottle>
38 std::string moduleName;
39 std::string inSpeechPortName;
40 std::string outSTARTPortName;
41 std::string inFacePortName;
43 std::string outSTARTUrlName;
45 yarp::os::Port portURL;
47 yarp::os::BufferedPort<yarp::os::Bottle> speechInPort;
48 yarp::os::BufferedPort<yarp::os::Bottle> startOutPort;
49 yarp::os::BufferedPort<yarp::os::Bottle> faceInPort;
57 STARTManager(
const std::string &moduleName );
62 void onRead( yarp::os::Bottle &bot );
64 void removetags(std::string &first, std::string &second, std::string &text);
66 static bool aZCheck(
char c)
76class STARTModule:
public yarp::os::RFModule
79 std::string moduleName;
80 std::string handlerPortName;
81 yarp::os::RpcServer rpcPort;
84 STARTManager *startManager;
89 bool configure(yarp::os::ResourceFinder &rf);
90 bool interruptModule();