1 #ifndef CONTROLLER_CLIENT_H     2 #define CONTROLLER_CLIENT_H     9 #include <yarp/os/Network.h>    10 #include <yarp/os/Port.h>    11 #include <yarp/os/Log.h>    12 #include <yarp/os/LogStream.h>    13 #include <yarp/os/RateThread.h>    14 #include <yarp/os/ResourceFinder.h>    30     ControllerClient (ocra::Model::Ptr derivedModelPtr, 
const int loopPeriod = DEFAULT_LOOP_PERIOD);
    38     virtual void printHelp(){std::cout << 
"Hey I am the base ControllerClient class!" << std::endl;}
    47     virtual bool configure(yarp::os::ResourceFinder &rf){
return true;};
    50     void addTasks(
const std::string& pathToXmlFile, 
bool overwrite);
    57     bool removeTasks(
const std::vector<std::string>& taskNameVector);
    60     bool changeFixedLink(std::string newFixedLink, 
int isInLeftSupport, 
int isInRightSupport);
    66     virtual void loop() = 0;
    72     bool clientThreadHasBeenReleased;
    75     yarp::os::Port statesPort;
    78     static int CONTROLLER_CLIENT_COUNT;
    81     yarp::os::Network yarp;
    85     static const int DEFAULT_LOOP_PERIOD = 10; 
    90 #endif // CONTROLLER_CLIENT_H 
virtual ~ControllerClient()
 
void addTasks(const std::string &pathToXmlFile, bool overwrite)
 
ClientCommunications::Ptr clientComs
 
std::vector< std::string > getTaskNames()
 
Declaration file of the Model class. 
 
virtual bool threadInit()
 
#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)
 
virtual bool initialize()
 
A callback for a port listing to robot states. 
 
bool checkIfTaskExists(ocra::TaskBuilderOptions &tmOpts)
 
bool removeTasks(const std::vector< std::string > &taskNameVector)
 
virtual bool configure(yarp::os::ResourceFinder &rf)
 
std::vector< std::string > getTaskTypes()
 
bool changeFixedLink(std::string newFixedLink, int isInLeftSupport, int isInRightSupport)
 
void addTask(ocra::TaskBuilderOptions &tmOpts, bool overwrite)
 
virtual void threadRelease()
 
bool removeTask(const std::string &taskName)