39 #include <moveit/task_constructor/container.h>
40 #include <moveit/macros/class_forward.h>
41 #include <geometry_msgs/PoseStamped.h>
42 #include <Eigen/Geometry>
46 MOVEIT_CLASS_FORWARD(RobotModel);
50 namespace task_constructor {
53 class GenerateGraspPose;
67 moveit::core::RobotModelConstPtr model_;
70 void setup(std::unique_ptr<Stage>&& generator,
bool forward);
75 void init(
const moveit::core::RobotModelConstPtr& robot_model)
override;
77 void setEndEffector(
const std::string& eef) {
setProperty(
"eef", eef); }
78 void setObject(
const std::string&
object) {
setProperty(
"object",
object); }
82 void setIKFrame(
const Eigen::Isometry3d& pose,
const std::string& link);
86 void setIKFrame(
const T& transform,
const std::string& link) {
87 setIKFrame(Eigen::Isometry3d(transform), link);
90 void setMaxIKSolutions(uint32_t max_ik_solutions) {
setProperty(
"max_ik_solutions", max_ik_solutions); }
97 SimpleGrasp(Stage::pointer&& generator = Stage::pointer(),
const std::string& name =
"grasp");
104 SimpleUnGrasp(Stage::pointer&& generator = Stage::pointer(),
const std::string& name =
"ungrasp");
Definition: container.h:96
void setProperty(const std::string &name, const boost::any &value)
Set a previously declared property to a new value.
Definition: stage.cpp:448
Definition: simple_grasp.h:66
void setIKFrame(const geometry_msgs::PoseStamped &transform)
set properties of IK solver
Definition: simple_grasp.h:81
void init(const moveit::core::RobotModelConstPtr &robot_model) override
Definition: simple_grasp.cpp:141
void setIKFrame(const T &transform, const std::string &link)
allow setting IK frame from any type T that converts to Eigen::Isometry3d
Definition: simple_grasp.h:86
specialization of SimpleGraspBase to realize grasping
Definition: simple_grasp.h:95
specialization of SimpleGraspBase to realize ungrasping
Definition: simple_grasp.h:102