39 #include <moveit_msgs/msg/constraints.hpp>
58 std::string constraint_name_;
65 constraint_name_ = constraint_name;
72 configuration_ = configuration;
78 moveit_msgs::msg::PositionConstraint pos_constraint;
79 pos_constraint.link_name = configuration_.
getLinkName();
80 pos_constraint.constraint_region.primitive_poses.push_back(configuration_.
getPose());
Class to define a robot configuration in space with the help of cartesian coordinates.
const geometry_msgs::msg::Pose & getPose() const
const std::string & getLinkName() const
Helper class to build moveit_msgs::msg::Constraints from a given configuration.
CartesianPathConstraintsBuilder & setConfiguration(const CartesianConfiguration &configuration)
moveit_msgs::msg::Constraints toPathConstraints() const
CartesianPathConstraintsBuilder & setConstraintName(const std::string &constraint_name)