67 const std::string& group)
80 ROS_DEBUG(
"%s constraints '%s'", replace ?
"Replaced" :
"Added", msg.name.c_str());
84 const std::string& group)
const 93 return !constr.empty();
97 std::vector<std::string>& names,
98 const std::string& robot,
const std::string& group)
const 105 const std::string& robot,
const std::string& group)
const 114 for (std::size_t i = 0; i < constr.size(); ++i)
120 const std::string& robot,
const std::string& group)
const 133 msg_m = constr.back();
135 const_cast<moveit_msgs::Constraints*
>(
static_cast<const moveit_msgs::Constraints*
>(msg_m.get()))->name = name;
141 const std::string& robot,
const std::string& group)
152 ROS_DEBUG(
"Renamed constraints from '%s' to '%s'", old_name.c_str(), new_name.c_str());
156 const std::string& group)
165 ROS_DEBUG(
"Removed %u Constraints messages (named '%s')", rem, name.c_str());
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 filterNames(const std::string ®ex, std::vector< std::string > &names) const
Keep only the names that match regex.
void removeConstraints(const std::string &name, const std::string &robot="", const std::string &group="")
warehouse_ros::DatabaseConnection::Ptr conn_
This class provides the mechanism to connect to a database and reads needed ROS parameters when appro...
bool hasConstraints(const std::string &name, const std::string &robot="", const std::string &group="") const
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_