37 #ifndef MOVEIT_MOVEIT_WAREHOUSE_CONSTRAINTS_STORAGE_ 38 #define MOVEIT_MOVEIT_WAREHOUSE_CONSTRAINTS_STORAGE_ 42 #include <moveit_msgs/Constraints.h> 62 void addConstraints(
const moveit_msgs::Constraints& msg,
const std::string& robot =
"",
63 const std::string& group =
"");
64 bool hasConstraints(
const std::string& name,
const std::string& robot =
"",
const std::string& group =
"")
const;
66 const std::string& group =
"")
const;
67 void getKnownConstraints(
const std::string& regex, std::vector<std::string>& names,
const std::string& robot =
"",
68 const std::string& group =
"")
const;
71 bool getConstraints(ConstraintsWithMetadata& msg_m,
const std::string& name,
const std::string& robot =
"",
72 const std::string& group =
"")
const;
74 void renameConstraints(
const std::string& old_name,
const std::string& new_name,
const std::string& robot =
"",
75 const std::string& group =
"");
77 void removeConstraints(
const std::string& name,
const std::string& robot =
"",
const std::string& group =
"");
static const std::string DATABASE_NAME
static const std::string CONSTRAINTS_GROUP_NAME
void addConstraints(const moveit_msgs::Constraints &msg, const std::string &robot="", const std::string &group="")
void removeConstraints(const std::string &name, const std::string &robot="", const std::string &group="")
warehouse_ros::MessageCollection< moveit_msgs::Constraints >::Ptr ConstraintsCollection
This class provides the mechanism to connect to a database and reads needed ROS parameters when appro...
warehouse_ros::MessageWithMetadata< moveit_msgs::Constraints >::ConstPtr ConstraintsWithMetadata
bool hasConstraints(const std::string &name, const std::string &robot="", const std::string &group="") const
MOVEIT_CLASS_FORWARD(ConstraintsStorage)
void renameConstraints(const std::string &old_name, const std::string &new_name, const std::string &robot="", const std::string &group="")
void getKnownConstraints(std::vector< std::string > &names, const std::string &robot="", const std::string &group="") const
static const std::string ROBOT_NAME
bool getConstraints(ConstraintsWithMetadata &msg_m, const std::string &name, const std::string &robot="", const std::string &group="") const
Get the constraints named name. Return false on failure.
static const std::string CONSTRAINTS_ID_NAME
ConstraintsStorage(warehouse_ros::DatabaseConnection::Ptr conn)
ConstraintsCollection constraints_collection_