44 if (config.check(
"help"))
49 std::string config_string = config.toString();
50 yarp::os::Property prop_check(config_string.c_str());
53 if (config.check(
"jointNames"))
57 yarp::os::Bottle* tempBot = config.find(
"jointNames").asList();
60 std::string tempBots = tempBot->toString();
61 for (
size_t i=0; i<tempBot->size(); i++)
68 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'jointNames' is not a properly formatted bottle";
71 yCInfo(CouplingICubEyeParamsCOMPONENT) <<
"Parameter 'jointNames' using value:" <<
m_jointNames;
75 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'jointNames' not found!";
76 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Names of the physical joints";
79 prop_check.unput(
"jointNames");
84 yarp::os::Bottle sectionp;
85 sectionp = config.findGroup(
"LIMITS");
86 if (sectionp.check(
"jntPosMin"))
90 yarp::os::Bottle* tempBot = sectionp.find(
"jntPosMin").asList();
93 std::string tempBots = tempBot->toString();
94 for (
size_t i=0; i<tempBot->size(); i++)
101 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'LIMITS_jntPosMin' is not a properly formatted bottle";
104 yCInfo(CouplingICubEyeParamsCOMPONENT) <<
"Parameter 'LIMITS::jntPosMin' using value:" <<
m_LIMITS_jntPosMin;
108 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'LIMITS::jntPosMin' not found!";
109 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Physical joints' position minimum";
112 prop_check.unput(
"LIMITS::jntPosMin");
117 yarp::os::Bottle sectionp;
118 sectionp = config.findGroup(
"LIMITS");
119 if (sectionp.check(
"jntPosMax"))
123 yarp::os::Bottle* tempBot = sectionp.find(
"jntPosMax").asList();
126 std::string tempBots = tempBot->toString();
127 for (
size_t i=0; i<tempBot->size(); i++)
134 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'LIMITS_jntPosMax' is not a properly formatted bottle";
137 yCInfo(CouplingICubEyeParamsCOMPONENT) <<
"Parameter 'LIMITS::jntPosMax' using value:" <<
m_LIMITS_jntPosMax;
141 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'LIMITS::jntPosMax' not found!";
142 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Physical joints' position maximum";
145 prop_check.unput(
"LIMITS::jntPosMax");
150 yarp::os::Bottle sectionp;
151 sectionp = config.findGroup(
"COUPLING");
152 if (sectionp.check(
"actuatedAxesNames"))
156 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesNames").asList();
159 std::string tempBots = tempBot->toString();
160 for (
size_t i=0; i<tempBot->size(); i++)
167 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesNames' is not a properly formatted bottle";
174 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesNames' not found!";
175 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Names of the actuated axes";
178 prop_check.unput(
"COUPLING::actuatedAxesNames");
183 yarp::os::Bottle sectionp;
184 sectionp = config.findGroup(
"COUPLING");
185 if (sectionp.check(
"actuatedAxesPosMin"))
189 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesPosMin").asList();
192 std::string tempBots = tempBot->toString();
193 for (
size_t i=0; i<tempBot->size(); i++)
200 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesPosMin' is not a properly formatted bottle";
207 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesPosMin' not found!";
208 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Actuated axes' position minimum";
211 prop_check.unput(
"COUPLING::actuatedAxesPosMin");
216 yarp::os::Bottle sectionp;
217 sectionp = config.findGroup(
"COUPLING");
218 if (sectionp.check(
"actuatedAxesPosMax"))
222 yarp::os::Bottle* tempBot = sectionp.find(
"actuatedAxesPosMax").asList();
225 std::string tempBots = tempBot->toString();
226 for (
size_t i=0; i<tempBot->size(); i++)
233 yCError(CouplingICubEyeParamsCOMPONENT) <<
"parameter 'COUPLING_actuatedAxesPosMax' is not a properly formatted bottle";
240 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Mandatory parameter 'COUPLING::actuatedAxesPosMax' not found!";
241 yCError(CouplingICubEyeParamsCOMPONENT) <<
"Description of the parameter: Actuated axes' position maximum";
244 prop_check.unput(
"COUPLING::actuatedAxesPosMax");