40 if(params.check(
"ports"))
42 Bottle *ports=params.find(
"ports").asList();
43 setId(ports->get(0).asString().c_str());
44 numPorts=ports->size();
47 if(!params.check(
"robotName") )
50 yError() <<
"skinWrapper: missing robot Name, check your configuration file!! Quitting\n";
54 if (params.check(
"period"))
56 period=params.find(
"period").asInt32();
61 yDebug() <<
"skinWrapper Warning: part "<<
id<<
" using default period ("<<period<<
")\n";
65 int total_taxels=params.find(
"total_taxels").asInt32();
66 std::string robotName=params.find(
"robotName").asString().c_str();
67 std::string root_name;
73 Property option(params.toString().c_str());
74 option.put(
"name",root_name);
75 option.unput(
"device");
76 option.put(
"device",
"analogServer");
77 option.put(
"channels",total_taxels);
78 option.unput(
"total_taxels");
81 yError()<<
"skinWrapper: unable to open the device";
86 yError()<<
"skinWrapper: invalid device";