Simox
2.3.74.0
|
Public Member Functions | |
GraspSet (const std::string &name, const std::string &robotType, const std::string &eef, const std::vector< GraspPtr > &grasps=std::vector< GraspPtr >()) | |
virtual | ~GraspSet () |
std::string | getName () const |
std::string | getRobotType () const |
std::string | getEndEffector () const |
void | addGrasp (GraspPtr grasp) |
bool | hasGrasp (GraspPtr grasp) const |
bool | hasGrasp (const std::string &name) const |
bool | removeGrasp (GraspPtr grasp) |
bool | removeGrasp (unsigned int i) |
void | removeAllGrasps () |
bool | isCompatibleGrasp (GraspPtr grasp) const |
void | clear () |
void | includeGraspSet (GraspSetPtr grasps) |
std::size_t | getSize () const |
GraspPtr | getGrasp (std::size_t n) const |
GraspPtr | getGrasp (const std::string &name) const |
void | print () const |
std::string | getXMLString (int tabs=1) const |
GraspSetPtr | clone () const |
std::vector< GraspPtr > | getGrasps () const |
void | setPreshape (const std::string &preshape) |
Sets preshape string of all grasps. More... | |
auto | begin () const |
auto | end () const |
bool | operator== (const GraspSet &rhs) const |
Protected Attributes | |
std::vector< GraspPtr > | grasps |
std::string | name |
std::string | robotType |
std::string | eef |
VirtualRobot::GraspSet::GraspSet | ( | const std::string & | name, |
const std::string & | robotType, | ||
const std::string & | eef, | ||
const std::vector< GraspPtr > & | grasps = std::vector< GraspPtr >() |
||
) |
|
virtualdefault |
void VirtualRobot::GraspSet::addGrasp | ( | GraspPtr | grasp | ) |
|
inline |
void VirtualRobot::GraspSet::clear | ( | ) |
VirtualRobot::GraspSetPtr VirtualRobot::GraspSet::clone | ( | ) | const |
|
inline |
std::string VirtualRobot::GraspSet::getEndEffector | ( | ) | const |
VirtualRobot::GraspPtr VirtualRobot::GraspSet::getGrasp | ( | std::size_t | n | ) | const |
Return grasp number n. If n is out of bounds an empty GraspPtr is returned.
VirtualRobot::GraspPtr VirtualRobot::GraspSet::getGrasp | ( | const std::string & | name | ) | const |
std::vector< GraspPtr > VirtualRobot::GraspSet::getGrasps | ( | ) | const |
std::string VirtualRobot::GraspSet::getName | ( | ) | const |
std::string VirtualRobot::GraspSet::getRobotType | ( | ) | const |
std::size_t VirtualRobot::GraspSet::getSize | ( | ) | const |
Return number of grasps stored in this set.
std::string VirtualRobot::GraspSet::getXMLString | ( | int | tabs = 1 | ) | const |
bool VirtualRobot::GraspSet::hasGrasp | ( | GraspPtr | grasp | ) | const |
bool VirtualRobot::GraspSet::hasGrasp | ( | const std::string & | name | ) | const |
void VirtualRobot::GraspSet::includeGraspSet | ( | GraspSetPtr | grasps | ) |
bool VirtualRobot::GraspSet::isCompatibleGrasp | ( | GraspPtr | grasp | ) | const |
|
inline |
void VirtualRobot::GraspSet::print | ( | ) | const |
void VirtualRobot::GraspSet::removeAllGrasps | ( | ) |
bool VirtualRobot::GraspSet::removeGrasp | ( | GraspPtr | grasp | ) |
bool VirtualRobot::GraspSet::removeGrasp | ( | unsigned int | i | ) |
void VirtualRobot::GraspSet::setPreshape | ( | const std::string & | preshape | ) |
Sets preshape string of all grasps.
|
protected |
|
protected |
|
protected |
|
protected |