Checks which two grasps of the same object can be executed concurrently. More...
#include <graspTransferCheckTask.h>
Public Member Functions | |
GraspTransferCheckTask (TaskDispatcher *disp, db_planner::DatabaseManager *mgr, db_planner::TaskRecord rec) | |
Just a stub for now. | |
virtual void | start () |
Actually does all the work. | |
~GraspTransferCheckTask () | |
Removes the object that has been used from the sim world, but not the hand. | |
Private Member Functions | |
bool | checkGraspCombo (db_planner::Grasp *grasp1, db_planner::Grasp *grasp2) |
Checks if a pair of grasps is compatible and writes it to the database. | |
Private Attributes | |
Hand * | mHand1 |
The hands we are planning with. | |
Hand * | mHand2 |
GraspableBody * | mObject |
The object we are planning on. | |
db_planner::PlanningTaskRecord | mPlanningTask |
The record of the actual planning task. |
Checks which two grasps of the same object can be executed concurrently.
Definition at line 38 of file graspTransferCheckTask.h.
GraspTransferCheckTask::GraspTransferCheckTask | ( | TaskDispatcher * | disp, | |
db_planner::DatabaseManager * | mgr, | |||
db_planner::TaskRecord | rec | |||
) |
Just a stub for now.
Definition at line 43 of file graspTransferCheckTask.cpp.
GraspTransferCheckTask::~GraspTransferCheckTask | ( | ) |
Removes the object that has been used from the sim world, but not the hand.
Definition at line 50 of file graspTransferCheckTask.cpp.
bool GraspTransferCheckTask::checkGraspCombo | ( | db_planner::Grasp * | grasp1, | |
db_planner::Grasp * | grasp2 | |||
) | [private] |
Checks if a pair of grasps is compatible and writes it to the database.
Checks if grasp2 can be executed while grasp1 is active.
Definition at line 160 of file graspTransferCheckTask.cpp.
void GraspTransferCheckTask::start | ( | ) | [virtual] |
Actually does all the work.
Implements Task.
Definition at line 67 of file graspTransferCheckTask.cpp.
Hand* GraspTransferCheckTask::mHand1 [private] |
The hands we are planning with.
Definition at line 41 of file graspTransferCheckTask.h.
Hand * GraspTransferCheckTask::mHand2 [private] |
Definition at line 41 of file graspTransferCheckTask.h.
GraspableBody* GraspTransferCheckTask::mObject [private] |
The object we are planning on.
Definition at line 43 of file graspTransferCheckTask.h.
The record of the actual planning task.
Definition at line 45 of file graspTransferCheckTask.h.