#include <trajectory_constraints_storage.h>
Public Member Functions | |
void | addTrajectoryConstraints (const moveit_msgs::TrajectoryConstraints &msg, const std::string &name, const std::string &robot="", const std::string &group="") |
void | getKnownTrajectoryConstraints (std::vector< std::string > &names, const std::string &robot="", const std::string &group="") const |
void | getKnownTrajectoryConstraints (const std::string ®ex, std::vector< std::string > &names, const std::string &robot="", const std::string &group="") const |
bool | getTrajectoryConstraints (TrajectoryConstraintsWithMetadata &msg_m, const std::string &name, const std::string &robot="", const std::string &group="") const |
Get the constraints named name. Return false on failure. | |
bool | hasTrajectoryConstraints (const std::string &name, const std::string &robot="", const std::string &group="") const |
void | removeTrajectoryConstraints (const std::string &name, const std::string &robot="", const std::string &group="") |
void | renameTrajectoryConstraints (const std::string &old_name, const std::string &new_name, const std::string &robot="", const std::string &group="") |
void | reset (void) |
TrajectoryConstraintsStorage (warehouse_ros::DatabaseConnection::Ptr conn) | |
Static Public Attributes | |
static const std::string | CONSTRAINTS_GROUP_NAME = "group_id" |
static const std::string | CONSTRAINTS_ID_NAME = "constraints_id" |
static const std::string | DATABASE_NAME = "moveit_trajectory_constraints" |
static const std::string | ROBOT_NAME = "robot_id" |
Private Member Functions | |
void | createCollections (void) |
Private Attributes | |
TrajectoryConstraintsCollection | constraints_collection_ |
Definition at line 52 of file trajectory_constraints_storage.h.
moveit_warehouse::TrajectoryConstraintsStorage::TrajectoryConstraintsStorage | ( | warehouse_ros::DatabaseConnection::Ptr | conn | ) |
Definition at line 48 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::addTrajectoryConstraints | ( | const moveit_msgs::TrajectoryConstraints & | msg, |
const std::string & | name, | ||
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) |
Definition at line 68 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::createCollections | ( | void | ) | [private] |
Definition at line 55 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::getKnownTrajectoryConstraints | ( | std::vector< std::string > & | names, |
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) | const |
Definition at line 109 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::getKnownTrajectoryConstraints | ( | const std::string & | regex, |
std::vector< std::string > & | names, | ||
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) | const |
Definition at line 100 of file trajectory_constraints_storage.cpp.
bool moveit_warehouse::TrajectoryConstraintsStorage::getTrajectoryConstraints | ( | TrajectoryConstraintsWithMetadata & | msg_m, |
const std::string & | name, | ||
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) | const |
Get the constraints named name. Return false on failure.
Definition at line 126 of file trajectory_constraints_storage.cpp.
bool moveit_warehouse::TrajectoryConstraintsStorage::hasTrajectoryConstraints | ( | const std::string & | name, |
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) | const |
Definition at line 86 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::removeTrajectoryConstraints | ( | const std::string & | name, |
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) |
Definition at line 164 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::renameTrajectoryConstraints | ( | const std::string & | old_name, |
const std::string & | new_name, | ||
const std::string & | robot = "" , |
||
const std::string & | group = "" |
||
) |
Definition at line 147 of file trajectory_constraints_storage.cpp.
void moveit_warehouse::TrajectoryConstraintsStorage::reset | ( | void | ) |
Definition at line 61 of file trajectory_constraints_storage.cpp.
TrajectoryConstraintsCollection moveit_warehouse::TrajectoryConstraintsStorage::constraints_collection_ [private] |
Definition at line 87 of file trajectory_constraints_storage.h.
const std::string moveit_warehouse::TrajectoryConstraintsStorage::CONSTRAINTS_GROUP_NAME = "group_id" [static] |
Definition at line 58 of file trajectory_constraints_storage.h.
const std::string moveit_warehouse::TrajectoryConstraintsStorage::CONSTRAINTS_ID_NAME = "constraints_id" [static] |
Definition at line 57 of file trajectory_constraints_storage.h.
const std::string moveit_warehouse::TrajectoryConstraintsStorage::DATABASE_NAME = "moveit_trajectory_constraints" [static] |
Definition at line 55 of file trajectory_constraints_storage.h.
const std::string moveit_warehouse::TrajectoryConstraintsStorage::ROBOT_NAME = "robot_id" [static] |
Definition at line 59 of file trajectory_constraints_storage.h.