moveit2
The MoveIt Motion Planning Framework for ROS 2.
Public Member Functions | Static Public Attributes | List of all members
moveit_warehouse::ConstraintsStorage Class Reference

#include <constraints_storage.h>

Inheritance diagram for moveit_warehouse::ConstraintsStorage:
Inheritance graph
[legend]
Collaboration diagram for moveit_warehouse::ConstraintsStorage:
Collaboration graph
[legend]

Public Member Functions

 ConstraintsStorage (warehouse_ros::DatabaseConnection::Ptr conn)
 
void addConstraints (const moveit_msgs::msg::Constraints &msg, const std::string &robot="", const std::string &group="")
 
bool hasConstraints (const std::string &name, const std::string &robot="", const std::string &group="") const
 
void getKnownConstraints (std::vector< std::string > &names, const std::string &robot="", const std::string &group="") const
 
void getKnownConstraints (const std::string &regex, std::vector< std::string > &names, const std::string &robot="", const std::string &group="") const
 
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. More...
 
void renameConstraints (const std::string &old_name, const std::string &new_name, const std::string &robot="", const std::string &group="")
 
void removeConstraints (const std::string &name, const std::string &robot="", const std::string &group="")
 
void reset ()
 
- Public Member Functions inherited from moveit_warehouse::MoveItMessageStorage
 MoveItMessageStorage (warehouse_ros::DatabaseConnection::Ptr conn)
 Takes a warehouse_ros DatabaseConnection. The DatabaseConnection is expected to have already been initialized. More...
 
virtual ~MoveItMessageStorage ()
 

Static Public Attributes

static const std::string DATABASE_NAME = "moveit_constraints"
 
static const std::string CONSTRAINTS_ID_NAME = "constraints_id"
 
static const std::string CONSTRAINTS_GROUP_NAME = "group_id"
 
static const std::string ROBOT_NAME = "robot_id"
 

Additional Inherited Members

- Protected Member Functions inherited from moveit_warehouse::MoveItMessageStorage
void filterNames (const std::string &regex, std::vector< std::string > &names) const
 Keep only the names that match regex. More...
 
- Protected Attributes inherited from moveit_warehouse::MoveItMessageStorage
warehouse_ros::DatabaseConnection::Ptr conn_
 

Detailed Description

Definition at line 52 of file constraints_storage.h.

Constructor & Destructor Documentation

◆ ConstraintsStorage()

moveit_warehouse::ConstraintsStorage::ConstraintsStorage ( warehouse_ros::DatabaseConnection::Ptr  conn)

Definition at line 52 of file constraints_storage.cpp.

Member Function Documentation

◆ addConstraints()

void moveit_warehouse::ConstraintsStorage::addConstraints ( const moveit_msgs::msg::Constraints &  msg,
const std::string &  robot = "",
const std::string &  group = "" 
)

Definition at line 70 of file constraints_storage.cpp.

◆ getConstraints()

bool moveit_warehouse::ConstraintsStorage::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.

Definition at line 123 of file constraints_storage.cpp.

Here is the caller graph for this function:

◆ getKnownConstraints() [1/2]

void moveit_warehouse::ConstraintsStorage::getKnownConstraints ( const std::string &  regex,
std::vector< std::string > &  names,
const std::string &  robot = "",
const std::string &  group = "" 
) const

Definition at line 100 of file constraints_storage.cpp.

◆ getKnownConstraints() [2/2]

void moveit_warehouse::ConstraintsStorage::getKnownConstraints ( std::vector< std::string > &  names,
const std::string &  robot = "",
const std::string &  group = "" 
) const

Definition at line 108 of file constraints_storage.cpp.

Here is the caller graph for this function:

◆ hasConstraints()

bool moveit_warehouse::ConstraintsStorage::hasConstraints ( const std::string &  name,
const std::string &  robot = "",
const std::string &  group = "" 
) const

Definition at line 87 of file constraints_storage.cpp.

◆ removeConstraints()

void moveit_warehouse::ConstraintsStorage::removeConstraints ( const std::string &  name,
const std::string &  robot = "",
const std::string &  group = "" 
)

Definition at line 160 of file constraints_storage.cpp.

◆ renameConstraints()

void moveit_warehouse::ConstraintsStorage::renameConstraints ( const std::string &  old_name,
const std::string &  new_name,
const std::string &  robot = "",
const std::string &  group = "" 
)

Definition at line 145 of file constraints_storage.cpp.

◆ reset()

void moveit_warehouse::ConstraintsStorage::reset ( )

Definition at line 63 of file constraints_storage.cpp.

Member Data Documentation

◆ CONSTRAINTS_GROUP_NAME

const std::string moveit_warehouse::ConstraintsStorage::CONSTRAINTS_GROUP_NAME = "group_id"
static

Definition at line 58 of file constraints_storage.h.

◆ CONSTRAINTS_ID_NAME

const std::string moveit_warehouse::ConstraintsStorage::CONSTRAINTS_ID_NAME = "constraints_id"
static

Definition at line 57 of file constraints_storage.h.

◆ DATABASE_NAME

const std::string moveit_warehouse::ConstraintsStorage::DATABASE_NAME = "moveit_constraints"
static

Definition at line 55 of file constraints_storage.h.

◆ ROBOT_NAME

const std::string moveit_warehouse::ConstraintsStorage::ROBOT_NAME = "robot_id"
static

Definition at line 59 of file constraints_storage.h.


The documentation for this class was generated from the following files: