Template Class SuperSRDFStep
Defined in File srdf_step.hpp
Inheritance Relationships
Base Type
public moveit_setup::srdf_setup::SRDFStep
(Class SRDFStep)
Class Documentation
-
template<typename T>
class SuperSRDFStep : public moveit_setup::srdf_setup::SRDFStep This class provides a number of standard operations based on srdf’s vector members.
Assuming T is a type that has a name_ field, this provides the following operations on the container in which the name_ field is kept unique.
find
create
rename
remove
get
Public Functions
-
virtual InformationFields getInfoField() const = 0
Returns the info field associated with this part of the SRDF.
-
inline T *find(const std::string &name)
Return a pointer to an item with the given name if it exists, otherwise null.
-
inline T *create(const std::string &name)
Create an item with the given name and return the pointer.
Note
: Does not check if an item with the given name exists
-
inline T *rename(const std::string &old_name, const std::string &new_name)
Renames an item and returns a pointer to the item.
- Throws:
runtime_error – If an item exists with the new name
-
inline bool remove(const std::string &name)
Delete an item with the given name from the list.
- Returns:
true if item was found