Uses a more advanced GuidedPlanner for grasp planning on dexterous hands; saves the results in a database. More...
#include <guided_grasp_planning_task.h>
Public Slots | |
void | plannerComplete () |
Connected to the complete() signal of the planner. | |
void | plannerUpdate () |
Connected to the update() signal of the planner. | |
Public Member Functions | |
GuidedGraspPlanningTask (graspit_dbase_tasks::DBTaskDispatcher *disp, db_planner::DatabaseManager *mgr, db_planner::TaskRecord rec) | |
Just a stub for now. | |
virtual void | start () |
Loads the hand and the object, initializes and starts a guided planner. | |
~GuidedGraspPlanningTask () | |
Removes the object that has been used from the sim world, but not the hand. | |
Private Member Functions | |
bool | saveGrasp (const GraspPlanningState *pre_gps, const GraspPlanningState *final_gps) |
Saves a solution grasp to the database. | |
Private Attributes | |
Hand * | mHand |
The hand we are planning with. | |
size_t | mLastSolution |
The index of the last solution saved. | |
GraspableBody * | mObject |
The object we are planning on. | |
GuidedPlanner * | mPlanner |
The planner that we are using. | |
db_planner::PlanningTaskRecord | mPlanningTask |
The record of the actual planning task. |
Uses a more advanced GuidedPlanner for grasp planning on dexterous hands; saves the results in a database.
This Task is similar to the GraspPlanningTask in this same package. See that class documentation to get started.
The key difference is that this task uses a different type of GraspIt! planner, namely the GuidedPlanner, which is better suited for more dexterous hands.
This task is better suited for planning with the Schunk SDH or the Barrett hands.
Definition at line 58 of file guided_grasp_planning_task.h.
dbase_grasp_planner::GuidedGraspPlanningTask::GuidedGraspPlanningTask | ( | graspit_dbase_tasks::DBTaskDispatcher * | disp, |
db_planner::DatabaseManager * | mgr, | ||
db_planner::TaskRecord | rec | ||
) |
Just a stub for now.
Definition at line 56 of file guided_grasp_planning_task.cpp.
Removes the object that has been used from the sim world, but not the hand.
Definition at line 65 of file guided_grasp_planning_task.cpp.
void dbase_grasp_planner::GuidedGraspPlanningTask::plannerComplete | ( | ) | [slot] |
Connected to the complete() signal of the planner.
Definition at line 151 of file guided_grasp_planning_task.cpp.
void dbase_grasp_planner::GuidedGraspPlanningTask::plannerUpdate | ( | ) | [slot] |
Connected to the update() signal of the planner.
Definition at line 156 of file guided_grasp_planning_task.cpp.
bool dbase_grasp_planner::GuidedGraspPlanningTask::saveGrasp | ( | const GraspPlanningState * | pre_gps, |
const GraspPlanningState * | final_gps | ||
) | [private] |
Saves a solution grasp to the database.
Definition at line 177 of file guided_grasp_planning_task.cpp.
void dbase_grasp_planner::GuidedGraspPlanningTask::start | ( | ) | [virtual] |
Loads the hand and the object, initializes and starts a guided planner.
Implements graspit_dbase_tasks::DBTask.
Definition at line 77 of file guided_grasp_planning_task.cpp.
Hand* dbase_grasp_planner::GuidedGraspPlanningTask::mHand [private] |
The hand we are planning with.
Definition at line 66 of file guided_grasp_planning_task.h.
size_t dbase_grasp_planner::GuidedGraspPlanningTask::mLastSolution [private] |
The index of the last solution saved.
Definition at line 70 of file guided_grasp_planning_task.h.
GraspableBody* dbase_grasp_planner::GuidedGraspPlanningTask::mObject [private] |
The object we are planning on.
Definition at line 62 of file guided_grasp_planning_task.h.
GuidedPlanner* dbase_grasp_planner::GuidedGraspPlanningTask::mPlanner [private] |
The planner that we are using.
Definition at line 64 of file guided_grasp_planning_task.h.
db_planner::PlanningTaskRecord dbase_grasp_planner::GuidedGraspPlanningTask::mPlanningTask [private] |
The record of the actual planning task.
Definition at line 68 of file guided_grasp_planning_task.h.