18 #ifndef __GRASP_TABLE_H__ 19 #define __GRASP_TABLE_H__ 25 #define MAX_NO_OF_OBJECTS 200 66 {m_GraspTableObject.clear();}
69 {m_GraspTableObject.resize(size);
return 0;}
73 std::vector<Grasp*>&
Get()
74 {
return m_GraspTableObject;}
78 if (m_GraspReadPtr <m_GraspWritePtr)
79 return m_GraspTableObject[m_GraspReadPtr++];
86 if (graspId < m_GraspTableObject.size())
87 return m_GraspTableObject[graspId];
93 {
if (m_GraspWritePtr < m_GraspTableObject.size()) m_GraspTableObject[m_GraspWritePtr++]=grasp; }
116 Grasp * GetNextGrasp(
unsigned int object_class_id);
117 Grasp * GetGrasp(
unsigned int object_class_id,
unsigned int & grasp_id);
118 void ResetReadPtr(
unsigned int object_class_id);
121 void ReadDoubleValue(TiXmlElement*
xml,
const char * tag,
double * value);
122 void ReadJoint(TiXmlElement* xml,
const char * tag, std::vector<double> &
values);
123 void ReadPose(TiXmlElement* xml,
const char * tag, std::vector<double> & values);
std::vector< double > m_HandPreGraspConfig
std::vector< GraspTableObject * > m_GraspTable
unsigned int m_ObjectClassId
unsigned int m_lastObjectClassId
void SetObjectClassId(unsigned int ObjectClassId)
#define MAX_NO_OF_OBJECTS
std::vector< double > values
void SetHandOptimalGraspConfig(std::vector< double > HandOptimalGraspConfig)
void SetTCPPreGraspPose(std::vector< double > TCPPreGraspPose)
std::vector< double > GetTCPGraspPose()
void SetGraspId(int graspId)
void SetTCPGraspPose(std::vector< double > TCPGraspPose)
unsigned int m_GraspReadPtr
std::vector< double > m_HandGraspConfig
std::vector< Grasp * > & Get()
set and get mehtods
std::vector< double > m_TCPGraspPose
void SetHandGraspConfig(std::vector< double > HandGraspConfig)
std::vector< double > m_TCPPreGraspPose
unsigned int GetObjectClassId()
std::vector< double > GetHandPreGraspConfig()
void SetHandPreGraspConfig(std::vector< double > HandPreGraspConfig)
void AddGrasp(Grasp *grasp)
std::vector< double > GetHandGraspConfig()
std::vector< double > GetHandOptimalGraspConfig()
unsigned int m_GraspWritePtr
std::vector< Grasp * > m_GraspTableObject
Grasp * GetGrasp(unsigned int graspId)
std::vector< double > GetTCPPreGraspPose()
std::vector< double > m_HandOptimalGraspConfig