135 if (config.check(
"help"))
144 if (config.check(
"jointNames"))
148 yarp::os::Bottle* tempBot = config.find(
"jointNames").asList();
151 std::string tempBots = tempBot->toString();
152 for (
size_t i=0; i<tempBot->size(); i++)
159 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'jointNames' is not a properly formatted bottle";
162 yCInfo(CouplingICubHandMk2ParamsCOMPONENT) <<
"Parameter 'jointNames' using value:" <<
m_jointNames;
166 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'jointNames' not found!";
167 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Names of the physical joints";
170 prop_check.unput(
"jointNames");
175 yarp::os::Bottle sectionp;
176 sectionp = config.findGroup(
"LIMITS");
177 if (sectionp.check(
"jntPosMin"))
181 yarp::os::Bottle* tempBot = sectionp.find(
"jntPosMin").asList();
184 std::string tempBots = tempBot->toString();
185 for (
size_t i=0; i<tempBot->size(); i++)
192 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'LIMITS_jntPosMin' is not a properly formatted bottle";
195 yCInfo(CouplingICubHandMk2ParamsCOMPONENT) <<
"Parameter 'LIMITS::jntPosMin' using value:" <<
m_LIMITS_jntPosMin;
199 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'LIMITS::jntPosMin' not found!";
200 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Physical joints' position minimum";
203 prop_check.unput(
"LIMITS::jntPosMin");
208 yarp::os::Bottle sectionp;
209 sectionp = config.findGroup(
"LIMITS");
210 if (sectionp.check(
"jntPosMax"))
214 yarp::os::Bottle* tempBot = sectionp.find(
"jntPosMax").asList();
217 std::string tempBots = tempBot->toString();
218 for (
size_t i=0; i<tempBot->size(); i++)
225 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'LIMITS_jntPosMax' is not a properly formatted bottle";
228 yCInfo(CouplingICubHandMk2ParamsCOMPONENT) <<
"Parameter 'LIMITS::jntPosMax' using value:" <<
m_LIMITS_jntPosMax;
232 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'LIMITS::jntPosMax' not found!";
233 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Physical joints' position maximum";
236 prop_check.unput(
"LIMITS::jntPosMax");
241 yarp::os::Bottle sectionp;
242 sectionp = config.findGroup(
"COUPLING");
243 if (sectionp.check(
"actuatedAxesNames"))
247 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesNames").asList();
250 std::string tempBots = tempBot->toString();
251 for (
size_t i=0; i<tempBot->size(); i++)
258 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesNames' is not a properly formatted bottle";
265 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesNames' not found!";
266 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Names of the actuated axes";
269 prop_check.unput(
"COUPLING::actuatedAxesNames");
274 yarp::os::Bottle sectionp;
275 sectionp = config.findGroup(
"COUPLING");
276 if (sectionp.check(
"actuatedAxesPosMin"))
280 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesPosMin").asList();
283 std::string tempBots = tempBot->toString();
284 for (
size_t i=0; i<tempBot->size(); i++)
291 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesPosMin' is not a properly formatted bottle";
298 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesPosMin' not found!";
299 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Actuated axes' position minimum";
302 prop_check.unput(
"COUPLING::actuatedAxesPosMin");
307 yarp::os::Bottle sectionp;
308 sectionp = config.findGroup(
"COUPLING");
309 if (sectionp.check(
"actuatedAxesPosMax"))
313 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesPosMax").asList();
316 std::string tempBots = tempBot->toString();
317 for (
size_t i=0; i<tempBot->size(); i++)
324 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesPosMax' is not a properly formatted bottle";
331 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesPosMax' not found!";
332 yCError(CouplingICubHandMk2ParamsCOMPONENT) <<
"Description of the parameter: Actuated axes' position maximum";
335 prop_check.unput(
"COUPLING::actuatedAxesPosMax");