27 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
31 using namespace ObjectLocalization;
40 ARMARX_INFO <<
"Requesting object class " << in.getObjectName() <<
" with cycle time " << in.getCycleTime() <<
".";
42 if (in.getObjectName().find(
"/") != std::string::npos)
45 ARMARX_INFO <<
"Using ObjectPoseStorage object, not setting ObjectChannel";
51 memoryx::ObjectMemoryObserverInterfacePrx objectMemoryObserver = getObjectMemoryObserver();
53 int priority = in.isPrioritySet() ? in.getPriority() : armarx::DEFAULT_VIEWTARGET_PRIORITY;
55 int cycleTime =
static_cast<int>(in.getCycleTime() / 1000.0f);
57 ChannelRefBasePtr channelRef = objectMemoryObserver->requestObjectClassRepeated(in.getObjectName(), cycleTime, priority);
60 out.setObjectChannel(channelRef);