18#include <yarp/os/all.h> 
   19#include <yarp/dev/all.h> 
   27using namespace yarp::os;
 
   44        string robot=rf.find(
"robot").asString();
 
   45        string part=rf.find(
"part").asString();
 
   46        string local=rf.find(
"local").asString();
 
   47        string pathToKin=rf.findFile(
"kinematics_file");
 
   52        optPart.put(
"device",
"fakeyClient");
 
   53        optPart.put(
"remote",
"/"+robot+
"/"+part);
 
   54        optPart.put(
"local",
"/"+local+
"/"+part);
 
   55        optPart.put(
"part",part);
 
   60            cout<<
"Error: Device driver not available!"<<endl;
 
   67        list.push(&
partDrv,part.c_str());
 
   70        Property optServer(
"(device cartesiancontrollerserver)");
 
   71        optServer.fromConfigFile(rf.findFile(
"from"),
false);
 
   72        if (!
server.open(optServer))
 
   74            cout<<
"Error: Unable to open the Cartesian Controller Server!"<<endl;
 
   80        IMultipleWrapper *wrapper;
 
   82        if (!wrapper->attachAll(list))
 
   84            cout<<
"Error: Unable to attach device drivers!"<<endl;
 
 
 
  111int main(
int argc, 
char *argv[])
 
  114    if (!
yarp.checkNetwork())
 
  116        cout<<
"Error: yarp server does not seem available"<<endl;
 
  125    rf.setDefaultConfigFile(
"server.ini");
 
  126    rf.setDefault(
"robot",
"fake_robot");
 
  127    rf.setDefault(
"part",
"fake_part");
 
  128    rf.setDefault(
"local",
"server");
 
  129    rf.setDefault(
"kinematics_file",
"kinematics.ini");
 
  130    rf.configure(argc,argv);
 
  133    return server.runModule(rf);
 
 
This class launches the server.
 
bool configure(ResourceFinder &rf)
 
void registerFakeMotorDevices()
Register new yarp devices for fake motor handling.
 
Copyright (C) 2008 RobotCub Consortium.