Go to the documentation of this file.
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>
51 defineOptionalProperty<std::string>(
54 "All grasp candidates without this infix are filtered out. Case-insensitive.");
55 defineOptionalProperty<float>(
"VisualizationSlowdownFactor",
57 "1.0 is a good value for clear visualization, 0 the "
58 "visualization should not slow down the process",
60 defineOptionalProperty<bool>(
"EnableVisualization",
62 "If false no visualization is done.",
64 defineOptionalProperty<float>(
"PreposeOffset",
66 "Offset of proposed grasp along negative z axis",
68 defineOptionalProperty<float>(
"UpwardsOffset",
70 "Offset of proposed grasp in upwards direction",
72 defineRequiredProperty<std::string>(
"TCPtoGCPMapping",
73 "Format: TCP L:GCP L;TCP R:GCP R",
75 defineOptionalProperty<std::string>(
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;
SimpleGraspGeneratorPropertyDefinitions(std::string prefix)
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
std::string getDefaultName() const override
GeneratedGraspList generateGrasps(const std::string &objectInstanceEntityId, const Ice::Current &c=Ice::emptyCurrent) override
Calculates the framedTCPPose and framedTCPPrepose.
The SimpleGraspGenerator class.
void onConnectComponent() override
void onExitComponent() override
void onInitComponent() override
void onDisconnectComponent() override
Baseclass for all ArmarX ManagedIceObjects requiring properties.
std::string getConfigIdentifier()
Retrieve config identifier for this component as set in constructor.
Default component property definition container.
std::shared_ptr< GridFileManager > GridFileManagerPtr
GeneratedGraspList generateGraspsByObjectName(const std::string &objectName, const Ice::Current &c=Ice::emptyCurrent) override
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
PropertyDefinitionsPtr createPropertyDefinitions() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr