#include <GraspTable.h>
Public Member Functions | |
void | AddGraspTableObject (GraspTableObject *graspTableObject) |
Grasp * | GetGrasp (unsigned int object_class_id, unsigned int &grasp_id) |
Grasp * | GetNextGrasp (unsigned int object_class_id) |
GraspTable () | |
int | Init (char *iniFile, unsigned int table_size=MAX_NO_OF_OBJECTS) |
void | ResetReadPtr (unsigned int object_class_id) |
Private Member Functions | |
void | ReadDoubleValue (TiXmlElement *xml, const char *tag, double *value) |
int | ReadFromFile (const char *filename, GraspTableObject *tableObject) |
void | ReadJoint (TiXmlElement *xml, const char *tag, std::vector< double > &values) |
void | ReadPose (TiXmlElement *xml, const char *tag, std::vector< double > &values) |
Private Attributes | |
std::vector< GraspTableObject * > | m_GraspTable |
unsigned int | m_lastObjectClassId |
Definition at line 108 of file GraspTable.h.
GraspTable::GraspTable | ( | ) | [inline] |
Definition at line 111 of file GraspTable.h.
void GraspTable::AddGraspTableObject | ( | GraspTableObject * | graspTableObject | ) |
Definition at line 169 of file GraspTable.cpp.
Grasp * GraspTable::GetGrasp | ( | unsigned int | object_class_id, |
unsigned int & | grasp_id | ||
) |
Definition at line 206 of file GraspTable.cpp.
Grasp * GraspTable::GetNextGrasp | ( | unsigned int | object_class_id | ) |
Definition at line 183 of file GraspTable.cpp.
int GraspTable::Init | ( | char * | iniFile, |
unsigned int | table_size = MAX_NO_OF_OBJECTS |
||
) |
Definition at line 124 of file GraspTable.cpp.
void GraspTable::ReadDoubleValue | ( | TiXmlElement * | xml, |
const char * | tag, | ||
double * | value | ||
) | [private] |
Definition at line 21 of file GraspTable.cpp.
int GraspTable::ReadFromFile | ( | const char * | filename, |
GraspTableObject * | tableObject | ||
) | [private] |
Definition at line 64 of file GraspTable.cpp.
void GraspTable::ReadJoint | ( | TiXmlElement * | xml, |
const char * | tag, | ||
std::vector< double > & | values | ||
) | [private] |
Definition at line 28 of file GraspTable.cpp.
void GraspTable::ReadPose | ( | TiXmlElement * | xml, |
const char * | tag, | ||
std::vector< double > & | values | ||
) | [private] |
Definition at line 51 of file GraspTable.cpp.
void GraspTable::ResetReadPtr | ( | unsigned int | object_class_id | ) |
Definition at line 198 of file GraspTable.cpp.
std::vector<GraspTableObject*> GraspTable::m_GraspTable [private] |
Definition at line 126 of file GraspTable.h.
unsigned int GraspTable::m_lastObjectClassId [private] |
Definition at line 127 of file GraspTable.h.