28 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
36 using namespace CoupledInteractionGroup;
52 ARMARX_LOG <<
"deactivating automatic view selection";
54 viewSelection->deactivateAutomaticViewSelection();
57 memoryx::ObjectInstanceMemorySegmentBasePrx objectInstancesSegment = workingMemory->getObjectInstancesSegment();
58 memoryx::ObjectInstanceList objectInstanceList = objectInstancesSegment->getObjectInstancesByClass(in.getObjectNameTable());
60 for (
auto& o : objectInstanceList)
69 objectInstancesSegment->removeEntity(objectInstance->getId());
74 objectMemoryObserver->requestObjectClassRepeated(in.getObjectNameTable(), 2000, armarx::DEFAULT_VIEWTARGET_PRIORITY);
82 while (!isRunningTaskStopped())
85 memoryx::ChannelRefBaseSequence objectInstanceList = objectMemoryObserver->getObjectInstancesByClass(in.getObjectNameTable());
86 ARMARX_LOG <<
"found " << objectInstanceList.size() <<
" instances for object " << in.getObjectNameTable();
88 for (
auto& o : objectInstanceList)
107 out.setTablePoseBase(tablePose);
109 emitEvTableLocalized();
122 float LocalizeTable::getYawAngle(
const armarx::PoseBasePtr& pose)
const
126 VirtualRobot::MathTools::eigen4f2rpy(p->toEigen(), rpy);
141 return "LocalizeTable";