27 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
30 using namespace ScanLocationGroup;
46 std::vector<std::string> objectClasses = in.getObjectclassesToLocalize();
48 if (objectClasses.empty())
54 memoryx::ObjectMemoryObserverInterfacePrx memoryObserver = getObjectMemoryObserver();
56 Term classesLocalized;
58 for (std::string className : objectClasses)
60 ChannelRefBasePtr channel = memoryObserver->requestObjectClassOnce(className, armarx::DEFAULT_VIEWTARGET_PRIORITY);
68 ChannelRefPtr classChannel = ChannelRefPtr::dynamicCast(channel);
73 classesLocalized = classesLocalized && localizationFinished;
83 installCondition(classesLocalized, createEventFinished());
84 setTimeoutEvent(in.getLocationTimeout() * 1000.0, createEventFinished());
92 memoryx::ObjectMemoryObserverInterfacePrx memoryObserver = getObjectMemoryObserver();
96 memoryObserver->releaseObjectClass(
c);