EigenGraspResult.cpp
Go to the documentation of this file.
00001 
00021 #include <grasp_planning_graspit/PrintHelpers.h>
00022 #include <grasp_planning_graspit/EigenGraspResult.h>
00023 #include <vector>
00024 
00025 using GraspIt::EigenGraspResult;
00026 
00027 EigenGraspResult::EigenGraspResult(const EigenGraspResult& o):
00028     relTransform(o.relTransform),
00029     graspDOFs(o.graspDOFs),
00030     pregraspDOFs(o.pregraspDOFs),
00031     egVals(o.egVals),
00032     legal(o.legal),
00033     qualEpsilon(o.qualEpsilon),
00034     qualVolume(o.qualVolume),
00035     energy(o.energy)
00036 
00037 {
00038 }
00039 
00040 EigenGraspResult::EigenGraspResult(
00041     const EigenTransform& _relTransform,
00042     const std::vector<double>& _graspDOFs,
00043     const std::vector<double>& _pregraspDOFs,
00044     const std::vector<double>& _egVals,
00045     const bool _legal,
00046     const double _qualEpsilon,
00047     const double _qualVolume,
00048     const double _energy):
00049     relTransform(_relTransform),
00050     graspDOFs(_graspDOFs),
00051     pregraspDOFs(_pregraspDOFs),
00052     egVals(_egVals),
00053     legal(_legal),
00054     qualEpsilon(_qualEpsilon),
00055     qualVolume(_qualVolume),
00056     energy(_energy)
00057 {
00058 }
00059 
00060 /*std::ostream& GraspIt::operator<<(std::ostream& o, const EigenGraspResult& r) {
00061 
00062     GraspIt::EigenGraspResult::EigenTransform relTransform=r.getObjectToHandTransform();
00063     std::vector<double> graspDOFs = r.getGraspJointDOFs();
00064     std::vector<double> egVals = r.getEigenGraspValues();
00065 
00066     o<<"Joint DOFs = [";
00067     for (std::vector<double>::const_iterator it=dofs.begin(); it!=dofs.end(); ++it) {
00068           o<<*it;
00069           if ((it+1)!=dofs.end()) o<<", ";
00070     }
00071     o<<"] EigenGrasps = [";
00072     for (std::vector<double>::const_iterator it=egVals.begin(); it!=egVals.end(); ++it) {
00073           o<<*it;
00074           if ((it+1)!=egVals.end()) o<<", ";
00075     }
00076     o<<"] Relative transform = "<<relTransform;
00077     return o;
00078 }*/


grasp_planning_graspit
Author(s): Jennifer Buehler
autogenerated on Wed May 8 2019 02:53:36