29 WorldStateSegmentBase::WorldStateSegmentBase()
36 ObjectInstanceBasePtr res = ObjectInstanceBasePtr::dynamicCast(
getEntityById(
id));
40 ARMARX_WARNING_S <<
"Entity with id " <<
id <<
" is not of type ObjectInstance!" << std::endl;
48 ObjectInstanceBasePtr res = ObjectInstanceBasePtr::dynamicCast(
getEntityByName(name));
52 ARMARX_WARNING_S <<
"Entity with name " << name <<
" is not of type ObjectInstance!" << std::endl;
61 classList.push_back(className);
67 ObjectInstanceList result;
72 ObjectInstanceBasePtr inst = ObjectInstanceBasePtr::dynamicCast(it->second);
73 ClassProbabilityMap instClasses = inst->getClasses();
75 for (NameList::const_iterator itCls = classList.begin(); itCls != classList.end(); ++itCls)
77 if (instClasses.count(*itCls))
79 result.push_back(inst);