#include <grasp.h>
Public Member Functions | |
double | Clearance () const |
bool | ClusterRep () const |
bool | CompliantCopy () const |
int | CompliantOriginalId () const |
double | Energy () const |
double | EpsilonQuality () const |
vector< double > | GetContacts () const |
vector< double > | GetFinalgraspJoints () const |
vector< double > | GetFinalgraspPosition () const |
vector< double > | GetPregraspJoints () const |
vector< double > | GetPregraspPosition () const |
string | GetSource () const |
int | GraspId () const |
const string & | HandName () const |
void | SetClearance (double clearance) |
void | SetClusterRep (bool c) |
void | SetCompliantCopy (bool c) |
void | SetCompliantOriginalId (int id) |
void | SetContacts (const vector< double > &contacts) |
void | SetEnergy (const double energy) |
void | SetEpsilonQuality (const double epsilon_quality) |
void | SetFinalgraspJoints (const vector< double > &finalgraspJoints) |
void | SetFinalgraspPosition (const vector< double > &finalgraspPosition) |
void | SetGraspId (const int grasp_id) |
virtual bool | SetGraspParameters (const vector< double > &, const vector< double > &, const vector< double > &, const vector< double > &) |
void | SetHandName (const string &hand_name) |
void | SetPregraspJoints (const vector< double > &pregraspJoints) |
void | SetPregraspPosition (const vector< double > &pregraspPosition) |
void | SetSource (string source) |
void | SetSourceModel (const Model &source_model) |
void | SetTableClearance (double clearance) |
void | SetVolumeQuality (const double volume_quality) |
const Model & | SourceModel () const |
double | TableClearance () const |
virtual bool | Transform (const float[16]) |
Transform a grasp by some 4x4 transform. | |
double | VolumeQuality () const |
virtual | ~Grasp () |
Static Public Member Functions | |
static bool | CompareEnergy (const Grasp *g1, const Grasp *g2) |
static bool | CompareEpsilon (const Grasp *g1, const Grasp *g2) |
static bool | CompareVolume (const Grasp *g1, const Grasp *g2) |
Private Attributes | |
bool | cluster_rep_ |
Whether this grasp is the representative of a cluster around it. | |
bool | compliant_copy_ |
Whether this grasp is the same (modulo compliant close) with another grasp in the database (PR2 specific). | |
int | compliant_original_id_ |
If compliant_copy_ is true, the id of the original grasp that this one is similar to. | |
vector< double > | contacts_ |
double | energy_ |
Quality value as used by automated grasp planners. | |
double | epsilon_quality_ |
Ferrari-Canny quality measures. | |
vector< double > | final_grasp_joints_ |
vector< double > | final_grasp_position_ |
int | grasp_id_ |
The id of the grasp from the database. | |
string | hand_name_ |
The name of the hand the grasp is for. | |
double | pregrasp_clearance_ |
The min distance between hand and object for pre-grasp. | |
vector< double > | pregrasp_joints_ |
The actual parameters of the grasp. | |
vector< double > | pregrasp_position_ |
string | source_ |
The source of this grasp: EGPlanner, human operator, etc. | |
const Model * | source_model_ |
The model being grasped. | |
double | table_clearance_ |
The distance between the hand and a table below the object oriented along the z axis. | |
double | volume_quality_ |
Definition at line 42 of file grasp.h.
int db_planner::Grasp::CompliantOriginalId | ( | ) | const [inline] |
vector<double> db_planner::Grasp::GetContacts | ( | ) | const [inline] |
vector<double> db_planner::Grasp::GetFinalgraspJoints | ( | ) | const [inline] |
vector<double> db_planner::Grasp::GetFinalgraspPosition | ( | ) | const [inline] |
vector<double> db_planner::Grasp::GetPregraspJoints | ( | ) | const [inline] |
vector<double> db_planner::Grasp::GetPregraspPosition | ( | ) | const [inline] |
const string& db_planner::Grasp::HandName | ( | ) | const [inline] |
void db_planner::Grasp::SetClearance | ( | double | clearance | ) | [inline] |
void db_planner::Grasp::SetCompliantCopy | ( | bool | c | ) | [inline] |
void db_planner::Grasp::SetCompliantOriginalId | ( | int | id | ) | [inline] |
void db_planner::Grasp::SetContacts | ( | const vector< double > & | contacts | ) | [inline] |
void db_planner::Grasp::SetEnergy | ( | const double | energy | ) | [inline] |
void db_planner::Grasp::SetEpsilonQuality | ( | const double | epsilon_quality | ) | [inline] |
void db_planner::Grasp::SetFinalgraspJoints | ( | const vector< double > & | finalgraspJoints | ) | [inline] |
void db_planner::Grasp::SetFinalgraspPosition | ( | const vector< double > & | finalgraspPosition | ) | [inline] |
void db_planner::Grasp::SetGraspId | ( | const int | grasp_id | ) | [inline] |
virtual bool db_planner::Grasp::SetGraspParameters | ( | const vector< double > & | , | |
const vector< double > & | , | |||
const vector< double > & | , | |||
const vector< double > & | ||||
) | [inline, virtual] |
Reimplemented in GraspitDBGrasp.
void db_planner::Grasp::SetHandName | ( | const string & | hand_name | ) | [inline] |
void db_planner::Grasp::SetPregraspJoints | ( | const vector< double > & | pregraspJoints | ) | [inline] |
void db_planner::Grasp::SetPregraspPosition | ( | const vector< double > & | pregraspPosition | ) | [inline] |
void db_planner::Grasp::SetSourceModel | ( | const Model & | source_model | ) | [inline] |
void db_planner::Grasp::SetTableClearance | ( | double | clearance | ) | [inline] |
void db_planner::Grasp::SetVolumeQuality | ( | const double | volume_quality | ) | [inline] |
const Model& db_planner::Grasp::SourceModel | ( | ) | const [inline] |
virtual bool db_planner::Grasp::Transform | ( | const | float[16] | ) | [inline, virtual] |
Transform a grasp by some 4x4 transform.
Transforms are and column major (?). This base implementation always fails.
Reimplemented in GraspitDBGrasp.
bool db_planner::Grasp::cluster_rep_ [private] |
bool db_planner::Grasp::compliant_copy_ [private] |
int db_planner::Grasp::compliant_original_id_ [private] |
vector<double> db_planner::Grasp::contacts_ [private] |
double db_planner::Grasp::energy_ [private] |
double db_planner::Grasp::epsilon_quality_ [private] |
vector<double> db_planner::Grasp::final_grasp_joints_ [private] |
vector<double> db_planner::Grasp::final_grasp_position_ [private] |
int db_planner::Grasp::grasp_id_ [private] |
string db_planner::Grasp::hand_name_ [private] |
double db_planner::Grasp::pregrasp_clearance_ [private] |
vector<double> db_planner::Grasp::pregrasp_joints_ [private] |
vector<double> db_planner::Grasp::pregrasp_position_ [private] |
string db_planner::Grasp::source_ [private] |
const Model* db_planner::Grasp::source_model_ [private] |
double db_planner::Grasp::table_clearance_ [private] |
double db_planner::Grasp::volume_quality_ [private] |