35 using namespace ObjectLocalization;
38 RemoveObjectInstances::SubClassRegistry
45 memoryx::WorkingMemoryInterfacePrx workingMemory = getWorkingMemory();
46 memoryx::ObjectInstanceMemorySegmentBasePrx objectInstancesSegment =
47 workingMemory->getObjectInstancesSegment();
48 memoryx::ObjectInstanceList objectInstanceList =
49 objectInstancesSegment->getObjectInstancesByClass(in.getObjectName());
51 for (
auto& o : objectInstanceList)
55 objectInstancesSegment->removeEntity(objectInstance->getId());