Dialog for creating, saving, loading and inspecting virtual contacts. More...
#include <contactExaminerDlg.h>
Public Slots | |
void | clearButton_clicked () |
void | exitButton_clicked () |
void | loadButton_clicked () |
void | markButton_clicked () |
void | modeSelected () |
void | saveButton_clicked () |
void | showGWSButton_clicked () |
void | updateQualityButton_clicked () |
Public Member Functions | |
ContactExaminerDlg (QWidget *parent=0) | |
~ContactExaminerDlg () | |
Private Member Functions | |
void | collectHandContacts () |
void | collectObjectContacts () |
void | destroy () |
void | init () |
void | showQuality () |
void | updateButtons () |
Private Attributes | |
Grasp * | mGrasp |
Hand * | mHand |
std::vector< Contact * > | mMarkedContacts |
GraspableBody * | mObject |
QualityMeasure * | mQual |
World * | mWorld |
Dialog for creating, saving, loading and inspecting virtual contacts.
This dialog enables a user to create virtual contacts on a hand, save them to a file, load virtual contacts from the file and inspect them. It needs a hand and an actual object; the user must create traditional contacts between the hand and the object, then use this dialog to mark them as virtual. The contacts then continue to exist as virtual contacts even after the object has been moved away. The newly created virtual contacts can then be saved to a file, or previously saved virtual contacts can be loaded from a file.
This dialog can also be used to compute a "virtual" grasp quality of all the virtual contacts on the hand, without need for an object. However, this functionality has not been tested recently. Overall, this dialog is in need of a re-design.
The same functionality can be applied to objects: you can load an object, mark contacts as virtual ot just load pre-saved virtual contacts from a file, and then compute grasp quality without needing a hand at all.
WARNING: this is code under construction, not very robust.
Definition at line 64 of file contactExaminerDlg.h.
ContactExaminerDlg::ContactExaminerDlg | ( | QWidget * | parent = 0 |
) | [inline] |
Definition at line 83 of file contactExaminerDlg.h.
ContactExaminerDlg::~ContactExaminerDlg | ( | ) | [inline] |
Definition at line 91 of file contactExaminerDlg.h.
void ContactExaminerDlg::clearButton_clicked | ( | ) | [slot] |
Definition at line 209 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::collectHandContacts | ( | ) | [private] |
Definition at line 75 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::collectObjectContacts | ( | ) | [private] |
Definition at line 109 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::destroy | ( | ) | [private] |
Definition at line 226 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::exitButton_clicked | ( | ) | [slot] |
Definition at line 173 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::init | ( | ) | [private] |
Definition at line 42 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::loadButton_clicked | ( | ) | [slot] |
Definition at line 124 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::markButton_clicked | ( | ) | [slot] |
Definition at line 63 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::modeSelected | ( | ) | [slot] |
Definition at line 240 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::saveButton_clicked | ( | ) | [slot] |
Definition at line 142 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::showGWSButton_clicked | ( | ) | [slot] |
Definition at line 234 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::showQuality | ( | ) | [private] |
Definition at line 192 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::updateButtons | ( | ) | [private] |
Definition at line 178 of file contactExaminerDlg.cpp.
void ContactExaminerDlg::updateQualityButton_clicked | ( | ) | [slot] |
Definition at line 187 of file contactExaminerDlg.cpp.
Grasp* ContactExaminerDlg::mGrasp [private] |
Definition at line 71 of file contactExaminerDlg.h.
Hand* ContactExaminerDlg::mHand [private] |
Definition at line 69 of file contactExaminerDlg.h.
std::vector<Contact*> ContactExaminerDlg::mMarkedContacts [private] |
Definition at line 72 of file contactExaminerDlg.h.
GraspableBody* ContactExaminerDlg::mObject [private] |
Definition at line 70 of file contactExaminerDlg.h.
QualityMeasure* ContactExaminerDlg::mQual [private] |
Definition at line 73 of file contactExaminerDlg.h.
World* ContactExaminerDlg::mWorld [private] |
Definition at line 68 of file contactExaminerDlg.h.