#include <dbasePlannerDlg.h>
Public Slots | |
void | alignmentChanged () |
void | createGWSButton_clicked () |
void | executeButton_clicked () |
void | exitButton_clicked () |
Button events. | |
void | getNeighborButton_clicked () |
void | modelChanged () |
Trigger events. | |
void | neighborCheckBoxChanged () |
void | nextGraspButton_clicked () |
void | originalGraspRadioButton_clicked () |
void | previousGraspButton_clicked () |
void | rankGraspsButton_clicked () |
void | retrieveGraspsButton_clicked () |
void | testedGraspRadioButton_clicked () |
Public Member Functions | |
DBasePlannerDlg (QWidget *parent=0, db_planner::DatabaseManager *dbm=NULL, db_planner::Model *m=NULL, Hand *h=NULL) | |
~DBasePlannerDlg () | |
Private Member Functions | |
template<class vectorType , class treatAsType > | |
void | deleteVectorElements (std::vector< vectorType > &v) |
void | destroy () |
void | init () |
void | initializeDistanceComboBox (std::vector< string >) |
void | nextGrasp (int &i, std::vector< db_planner::Grasp * > graspList) |
void | previousGrasp (int &i, std::vector< db_planner::Grasp * > graspList) |
void | setGroupBoxEnabled (bool nbrGen, bool alignment, bool ranking, bool grasp, bool execute) |
void | show3DObject (bool isNbr=false) |
void | showGrasp (db_planner::Grasp *grasp) |
void | updateModelImage (db_planner::Model *) |
void | updateNeighborList () |
void | updateOriginalGraspInfo () |
void | updateTestedGraspInfo () |
Private Attributes | |
db_planner::Aligner < db_planner::Model > * | mAligner |
Aligner that does alignments between two models. | |
int | mCurrentOriginalGrasp |
Index of the current grasp in mOriginalGrasps. | |
int | mCurrentTestedGrasp |
Index of the current grasp in mTestedGrasps. | |
db_planner::DatabaseManager * | mDBMgr |
Database manager that talks with the database. | |
db_planner::GraspRanker * | mGraspRanker |
Grasp ranker that ranks a bag of grasps. | |
Hand * | mHand |
A pointer to the hand involved in the current grasps. | |
QGraphicsScene * | mModelScene |
Widget for displaying thumbnails. | |
db_planner::Model * | mModelShown |
A pointer to the model shown in GraspIt world. | |
db_planner::NeighborFinder < db_planner::Model > * | mNeighborFinder |
Instance of neighbor finder. | |
std::vector< std::pair < db_planner::Model *, double > > | mNeighbors |
A simple table that records the neighbors and the distances from current model. | |
std::vector< db_planner::Grasp * > | mOriginalGrasps |
A vector that stores the original grasps from neighbors. | |
GraspitDBPlanner * | mPlanner |
Planner that does the kernel test for grasp planning. | |
db_planner::Model * | mPlanningModel |
A pointer to the model to be planned. | |
std::vector< db_planner::Grasp * > | mTestedGrasps |
A vector that stores the tested grasps after test all is called. | |
bool | neighborComboBoxInReconstruction |
Helper variable that indicates whether the neighbor combo box is in reconstruction. |
Definition at line 55 of file dbasePlannerDlg.h.
DBasePlannerDlg::DBasePlannerDlg | ( | QWidget * | parent = 0 , |
|
db_planner::DatabaseManager * | dbm = NULL , |
|||
db_planner::Model * | m = NULL , |
|||
Hand * | h = NULL | |||
) | [inline] |
Definition at line 108 of file dbasePlannerDlg.h.
DBasePlannerDlg::~DBasePlannerDlg | ( | ) | [inline] |
Definition at line 129 of file dbasePlannerDlg.h.
void DBasePlannerDlg::alignmentChanged | ( | ) | [slot] |
Definition at line 405 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::createGWSButton_clicked | ( | ) | [slot] |
Definition at line 213 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::deleteVectorElements | ( | std::vector< vectorType > & | v | ) | [inline, private] |
Definition at line 411 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::destroy | ( | ) | [private] |
Definition at line 77 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::executeButton_clicked | ( | ) | [slot] |
Definition at line 103 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::exitButton_clicked | ( | ) | [slot] |
Button events.
Definition at line 83 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::getNeighborButton_clicked | ( | ) | [slot] |
Definition at line 89 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::init | ( | ) | [private] |
Definition at line 63 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::initializeDistanceComboBox | ( | std::vector< string > | entries | ) | [private] |
Definition at line 218 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::modelChanged | ( | ) | [slot] |
Trigger events.
Definition at line 322 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::neighborCheckBoxChanged | ( | ) | [slot] |
Definition at line 329 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::nextGrasp | ( | int & | i, | |
std::vector< db_planner::Grasp * > | graspList | |||
) | [private] |
Definition at line 265 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::nextGraspButton_clicked | ( | ) | [slot] |
Definition at line 199 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::originalGraspRadioButton_clicked | ( | ) | [slot] |
Definition at line 335 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::previousGrasp | ( | int & | i, | |
std::vector< db_planner::Grasp * > | graspList | |||
) | [private] |
Definition at line 257 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::previousGraspButton_clicked | ( | ) | [slot] |
Definition at line 185 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::rankGraspsButton_clicked | ( | ) | [slot] |
Definition at line 152 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::retrieveGraspsButton_clicked | ( | ) | [slot] |
Definition at line 133 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::setGroupBoxEnabled | ( | bool | nbrGen, | |
bool | alignment, | |||
bool | ranking, | |||
bool | grasp, | |||
bool | execute | |||
) | [private] |
Definition at line 396 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::show3DObject | ( | bool | isNbr = false |
) | [private] |
Definition at line 352 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::showGrasp | ( | db_planner::Grasp * | grasp | ) | [private] |
Definition at line 276 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::testedGraspRadioButton_clicked | ( | ) | [slot] |
Definition at line 342 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::updateModelImage | ( | db_planner::Model * | model | ) | [private] |
Definition at line 308 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::updateNeighborList | ( | ) | [private] |
Definition at line 298 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::updateOriginalGraspInfo | ( | ) | [private] |
Definition at line 225 of file dbasePlannerDlg.cpp.
void DBasePlannerDlg::updateTestedGraspInfo | ( | ) | [private] |
Definition at line 240 of file dbasePlannerDlg.cpp.
Aligner that does alignments between two models.
Definition at line 66 of file dbasePlannerDlg.h.
int DBasePlannerDlg::mCurrentOriginalGrasp [private] |
Index of the current grasp in mOriginalGrasps.
Definition at line 82 of file dbasePlannerDlg.h.
int DBasePlannerDlg::mCurrentTestedGrasp [private] |
Index of the current grasp in mTestedGrasps.
Definition at line 84 of file dbasePlannerDlg.h.
Database manager that talks with the database.
Definition at line 60 of file dbasePlannerDlg.h.
Grasp ranker that ranks a bag of grasps.
Definition at line 64 of file dbasePlannerDlg.h.
Hand* DBasePlannerDlg::mHand [private] |
A pointer to the hand involved in the current grasps.
Definition at line 80 of file dbasePlannerDlg.h.
QGraphicsScene* DBasePlannerDlg::mModelScene [private] |
Widget for displaying thumbnails.
Definition at line 86 of file dbasePlannerDlg.h.
db_planner::Model* DBasePlannerDlg::mModelShown [private] |
A pointer to the model shown in GraspIt world.
Definition at line 78 of file dbasePlannerDlg.h.
Instance of neighbor finder.
Definition at line 62 of file dbasePlannerDlg.h.
std::vector<std::pair<db_planner::Model*, double> > DBasePlannerDlg::mNeighbors [private] |
A simple table that records the neighbors and the distances from current model.
Definition at line 70 of file dbasePlannerDlg.h.
std::vector<db_planner::Grasp*> DBasePlannerDlg::mOriginalGrasps [private] |
A vector that stores the original grasps from neighbors.
Definition at line 72 of file dbasePlannerDlg.h.
GraspitDBPlanner* DBasePlannerDlg::mPlanner [private] |
Planner that does the kernel test for grasp planning.
Definition at line 68 of file dbasePlannerDlg.h.
db_planner::Model* DBasePlannerDlg::mPlanningModel [private] |
A pointer to the model to be planned.
Definition at line 76 of file dbasePlannerDlg.h.
std::vector<db_planner::Grasp*> DBasePlannerDlg::mTestedGrasps [private] |
A vector that stores the tested grasps after test all is called.
Definition at line 74 of file dbasePlannerDlg.h.
bool DBasePlannerDlg::neighborComboBoxInReconstruction [private] |
Helper variable that indicates whether the neighbor combo box is in reconstruction.
Definition at line 88 of file dbasePlannerDlg.h.