28 using namespace FindAndGraspObjectGroup;
44 memoryx::ChannelRefBaseSequence objectChannelRefs = context->
objectMemoryObserver->getObjectInstances(getInput<ChannelRef>(
"objectChannel"));
45 memoryx::ChannelRefBaseSequence markerChannelRefs = context->
objectMemoryObserver->getObjectInstances(getInput<ChannelRef>(
"markerChannel"));
46 ARMARX_DEBUG <<
"objectChannel available: " << objectChannelRefs.size() <<
"; " <<
"markerChannel available: " << markerChannelRefs.size();
48 if (objectChannelRefs.size() == 0 || markerChannelRefs.size() == 0)
55 setOutput(
"objectInstanceChannel", objectChannelRefs.front());
56 setOutput(
"markerInstanceChannel", markerChannelRefs.front());
58 ARMARX_DEBUG <<
"SelectObjectsState::onEnter(): objectChannelRefs.front(): " << objectChannelRefs.front() <<
" (to: setOutput())" <<
flush;
59 ARMARX_DEBUG <<
"SelectObjectsState::onEnter(): markerChannelRefs.front(): " << markerChannelRefs.front() <<
" (to: setOutput())" <<
flush;
60 sendEvent<EvObjectsSelected>();
73 return "SelectObject";