3 #include <SimoxUtility/algorithm/string.h>
4 #include <VirtualRobot/ManipulationObject.h>
17 const std::vector<std::string>& datasets)
22 memoryx::PersistentObjectClassSegmentBasePrx objectClassesSegment =
23 priorKnowledge->getObjectClassesSegment();
27 memoryx::EntityBaseList classEntities = objectClassesSegment->getAllEntities();
28 for (
auto& classEntity : classEntities)
35 std::string objectClassName = objectClass->getName();
36 bool load = datasets.empty();
37 for (
const auto& d : datasets)
39 if (simox::alg::count(objectClassName,
"/") ==
54 ARMARX_INFO <<
"Getting files for object class '" << objectClassName <<
"'";
57 VirtualRobot::ManipulationObjectPtr manipulationObject =
58 sw->getManipulationObject();
61 classToWrapper.emplace(objectClassName, classData);
67 std::optional<ObjectClassWrapper>
70 auto found = classToWrapper.find(className);
71 if (found == classToWrapper.end())