29 WorldStateSegmentBase::WorldStateSegmentBase()
36 ObjectInstanceBasePtr res = ObjectInstanceBasePtr::dynamicCast(
getEntityById(
id));
40 ARMARX_WARNING_S <<
"Entity with id " <<
id <<
" is not of type ObjectInstance!"
49 const ::Ice::Current&)
const
51 ObjectInstanceBasePtr res = ObjectInstanceBasePtr::dynamicCast(
getEntityByName(name));
55 ARMARX_WARNING_S <<
"Entity with name " << name <<
" is not of type ObjectInstance!"
64 const ::Ice::Current&
c)
const
67 classList.push_back(className);
73 const ::Ice::Current&
c)
const
75 ObjectInstanceList result;
80 ObjectInstanceBasePtr inst = ObjectInstanceBasePtr::dynamicCast(it->second);
81 ClassProbabilityMap instClasses = inst->getClasses();
83 for (NameList::const_iterator itCls = classList.begin(); itCls != classList.end();
86 if (instClasses.count(*itCls))
88 result.push_back(inst);