27#include <Eigen/Geometry>
33#include <RobotComponents/interface/components/GraspingManager/GraspGeneratorInterface.h>
36#include <MemoryX/interface/components/WorkingMemoryInterface.h>
37#include <MemoryX/interface/memorytypes/MemorySegments.h>
54 "All grasp candidates without this infix are filtered out. Case-insensitive.");
57 "1.0 is a good value for clear visualization, 0 the "
58 "visualization should not slow down the process",
62 "If false no visualization is done.",
66 "Offset of proposed grasp along negative z axis",
70 "Offset of proposed grasp in upwards direction",
73 "Format: TCP L:GCP L;TCP R:GCP R",
76 "RobotType",
"Armar3",
"Type of robot for which the grasps should be generated");
102 return "SimpleGraspGenerator";
114 GeneratedGraspList
generateGrasps(
const std::string& objectInstanceEntityId,
115 const Ice::Current&
c = Ice::emptyCurrent)
override;
118 const Ice::Current&
c = Ice::emptyCurrent)
override;
159 StringStringDictionary getTcpGcpMapping();
162 memoryx::WorkingMemoryInterfacePrx
wm;
163 memoryx::WorkingMemoryEntitySegmentBasePrx objectInstances;
164 memoryx::PriorKnowledgeInterfacePrx prior;
165 memoryx::PersistentObjectClassSegmentBasePrx objectClasses;
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Component()
Protected default constructor. Used for virtual inheritance. Use createManagedIceObject() instead.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
PropertyDefinition< PropertyType > & defineOptionalProperty(const std::string &name, PropertyType defaultValue, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
PropertyDefinition< PropertyType > & defineRequiredProperty(const std::string &name, const std::string &description="", PropertyDefinitionBase::PropertyConstness constness=PropertyDefinitionBase::eConstant)
SimpleGraspGeneratorPropertyDefinitions(std::string prefix)
The SimpleGraspGenerator class.
void onInitComponent() override
void onDisconnectComponent() override
void onConnectComponent() override
GeneratedGraspList generateGraspsByObjectName(const std::string &objectName, const Ice::Current &c=Ice::emptyCurrent) override
PropertyDefinitionsPtr createPropertyDefinitions() override
GeneratedGraspList generateGrasps(const std::string &objectInstanceEntityId, const Ice::Current &c=Ice::emptyCurrent) override
Calculates the framedTCPPose and framedTCPPrepose.
void onExitComponent() override
std::string getDefaultName() const override
std::shared_ptr< class Robot > RobotPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
::IceInternal::ProxyHandle<::IceProxy::armarx::RobotStateComponentInterface > RobotStateComponentInterfacePrx
::IceInternal::ProxyHandle<::IceProxy::armarx::DebugDrawerInterface > DebugDrawerInterfacePrx
std::shared_ptr< GridFileManager > GridFileManagerPtr