27 #include <VirtualRobot/Grasping/GraspSet.h>
31 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
32 #include <MemoryX/interface/observers/ObjectMemoryObserverInterface.h>
39 using namespace FindAndGraspObjectGroup;
59 memoryx::PersistentObjectClassSegmentBasePrx classesSegmentPrx =
61 memoryx::CommonStorageInterfacePrx databasePrx = context->
priorMemoryProxy->getCommonStorage();
63 memoryx::EntityBasePtr entity =
64 classesSegmentPrx->getEntityByName(getInput<std::string>(
"objectName"));
68 VirtualRobot::ManipulationObjectPtr mo = simoxWrapper->getManipulationObject();
84 std::string graspSetName = getInput<std::string>(
"graspSetName");
85 VirtualRobot::GraspSetPtr gs = mo->getGraspSet(graspSetName);
89 std::string graspName = getInput<std::string>(
"graspName");
91 ARMARX_DEBUG <<
"VisualServoObject: getting grasp with name: " << graspName <<
flush;
112 getLocal<ChannelRef>(
"objectChannel"));
118 const std::string& inputName)
121 std::string objectName = getInput<std::string>(inputName);
122 ChannelRefBasePtr objectChannel =
127 setLocal(objectChannelName, objectChannel);
128 ARMARX_DEBUG <<
"setLocal() for objectName: " << objectName
129 <<
"; objectChannelName: " << objectChannelName;
141 return "VisualServoObject";