50 armarx::NameControlModeMap controlMode;
51 controlMode[
"Neck_1_Pitch"] = armarx::ePositionControl;
52 controlMode[
"Cameras"] = armarx::ePositionControl;
54 armarx::NameValueMap jointValues;
55 jointValues[
"Neck_1_Pitch"] = 0.3;
56 jointValues[
"Cameras"] = -0.3;
59 std::vector<std::string> imageFilePathsLeft, imageFilePathsRight;
67 imageFilePathsLeft.push_back(
68 "/homes/staff/schieben/datalog/YCB/Head/09-Frenchs-Mustard/snapshot_left_0000.bmp");
69 imageFilePathsRight.push_back(
70 "/homes/staff/schieben/datalog/YCB/Head/09-Frenchs-Mustard/snapshot_right_0000.bmp");
115 imageFilePathsLeft.clear();
116 imageFilePathsLeft.push_back(
117 "/homes/staff/schieben/datalog/YCB/Head/reco-test/img_pos/snapshot_left_0000.bmp");
118 imageFilePathsRight.push_back(
119 "/homes/staff/schieben/datalog/YCB/Head/reco-test/img_pos/snapshot_right_0000.bmp");
121 std::vector<std::string> objectNames;
122 objectNames.push_back(
"Orange");
124 for (
size_t objectNumber = 0; objectNumber < imageFilePathsLeft.size(); objectNumber++)
127 imageFilePathsRight.at(objectNumber));
131 for (
int i = 0; i < 6; i++)
133 p->
olpProxy->recognizeObject(objectNames.at(objectNumber));
148 for (
size_t objectNumber = 0; objectNumber < imageFilePathsLeft.size(); objectNumber++)
151 imageFilePathsRight.at(objectNumber));
159 p->
olpProxy->CreateInitialObjectHypotheses();
169 ->getDataField(
new armarx::DataFieldIdentifierBase(
170 "ObjectLearningByPushingObserver",
172 "initialHypothesesCreated"))
174 }
while (olpStatus == 0);
179 <<
"Creation of initial hypotheses failed, skipping this object";
190 p->
olpProxy->ValidateInitialObjectHypotheses();
200 ->getDataField(
new armarx::DataFieldIdentifierBase(
201 "ObjectLearningByPushingObserver",
203 "hypothesesValidated"))
205 }
while (olpStatus == 0);
210 <<
"Validation of initial hypotheses failed, skipping this object";
217 for (
int i = 2; i <= 5; i++)
221 p->
olpProxy->RevalidateConfirmedObjectHypotheses();
231 ->getDataField(
new armarx::DataFieldIdentifierBase(
232 "ObjectLearningByPushingObserver",
234 "hypothesesValidated"))
236 }
while (olpStatus == 0);
240 ARMARX_WARNING_S <<
"Validation of hypotheses failed, skipping this object";
246 <<
" of " << imageFilePathsLeft.size();