Public Types | Public Member Functions | Private Attributes | Friends
GraspIt::EigenGraspResult Class Reference

Stores the values for a grasp. More...

#include <EigenGraspResult.h>

List of all members.

Public Types

typedef Eigen::Transform
< double, 3, Eigen::Affine > 
EigenTransform

Public Member Functions

 EigenGraspResult ()
 EigenGraspResult (const EigenGraspResult &o)
 EigenGraspResult (const EigenTransform &_relTransform, const std::vector< double > &_dofsGrasp, const std::vector< double > &_dofsPregrasp, const std::vector< double > &_egVals, const bool _legal, const double _qualEpsilon, const double _qualVolume, const double _energy)
const std::vector< double > & getEigenGraspValues () const
double getEnergy () const
const std::vector< double > & getGraspJointDOFs () const
const EigenTransformgetObjectToHandTransform () const
const std::vector< double > & getPregraspJointDOFs () const
bool isLegal () const
double qualityEpsilon () const
double qualityVolume () const

Private Attributes

std::vector< double > egVals
double energy
std::vector< double > graspDOFs
bool legal
std::vector< double > pregraspDOFs
double qualEpsilon
double qualVolume
EigenTransform relTransform

Friends

std::ostream & operator<< (std::ostream &o, const EigenGraspResult &r)

Detailed Description

Stores the values for a grasp.

Grasp values consist of

Author:
Jennifer Buehler
Date:
January 2016

Definition at line 48 of file EigenGraspResult.h.


Member Typedef Documentation

typedef Eigen::Transform<double, 3, Eigen::Affine> GraspIt::EigenGraspResult::EigenTransform

Definition at line 51 of file EigenGraspResult.h.


Constructor & Destructor Documentation

Definition at line 53 of file EigenGraspResult.h.

Definition at line 27 of file EigenGraspResult.cpp.

EigenGraspResult::EigenGraspResult ( const EigenTransform _relTransform,
const std::vector< double > &  _dofsGrasp,
const std::vector< double > &  _dofsPregrasp,
const std::vector< double > &  _egVals,
const bool  _legal,
const double  _qualEpsilon,
const double  _qualVolume,
const double  _energy 
)
Parameters:
_legalWhether this state is legal or not, usually refers to presence or absence of collisions
_qualEpsilonThe epsilon quality for this grasp
_qualVolumeThe volume quality for this grasp
_energyThe energy used by the simulated annealing-based planners

Definition at line 40 of file EigenGraspResult.cpp.


Member Function Documentation

const std::vector<double>& GraspIt::EigenGraspResult::getEigenGraspValues ( ) const [inline]

Returns the Eigengrasp value(s) for the grasp.

Definition at line 101 of file EigenGraspResult.h.

double GraspIt::EigenGraspResult::getEnergy ( ) const [inline]

The energy used by the simulated annealing-based planners

Definition at line 109 of file EigenGraspResult.h.

const std::vector<double>& GraspIt::EigenGraspResult::getGraspJointDOFs ( ) const [inline]

Returns the joint's DOF values (joint angles) for a closing grasp. The order corresponds to the order the joints were given in the GraspIt robot description file. If generated with urdf2graspit, this corresponds to the order the joints are encountered in a depth-first search of the URDF tree. The size of the returned vector should be the same size as the movable joints used for the EigenGrasp.

Definition at line 86 of file EigenGraspResult.h.

Definition at line 72 of file EigenGraspResult.h.

const std::vector<double>& GraspIt::EigenGraspResult::getPregraspJointDOFs ( ) const [inline]

Like getGraspJointDOFs(), but for the pre-grasp.

Definition at line 93 of file EigenGraspResult.h.

bool GraspIt::EigenGraspResult::isLegal ( ) const [inline]

Whether this state is legal or not, usually refers to presence or absence of collisions

Definition at line 117 of file EigenGraspResult.h.

double GraspIt::EigenGraspResult::qualityEpsilon ( ) const [inline]

The epsilon quality for this grasp Jan 16: The quality value is always 0 for the simulated annealing planner. Have to investigate why.

Definition at line 126 of file EigenGraspResult.h.

double GraspIt::EigenGraspResult::qualityVolume ( ) const [inline]

The volume quality for this grasp Jan 16: The quality value is always 0 for the simulated annealing planner. Have to investigate why.

Definition at line 136 of file EigenGraspResult.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
const EigenGraspResult r 
) [friend]

Definition at line 141 of file EigenGraspResult.h.


Member Data Documentation

std::vector<double> GraspIt::EigenGraspResult::egVals [private]

Definition at line 168 of file EigenGraspResult.h.

Definition at line 171 of file EigenGraspResult.h.

std::vector<double> GraspIt::EigenGraspResult::graspDOFs [private]

Definition at line 166 of file EigenGraspResult.h.

Definition at line 174 of file EigenGraspResult.h.

std::vector<double> GraspIt::EigenGraspResult::pregraspDOFs [private]

Definition at line 167 of file EigenGraspResult.h.

Definition at line 178 of file EigenGraspResult.h.

Definition at line 182 of file EigenGraspResult.h.

Definition at line 164 of file EigenGraspResult.h.


The documentation for this class was generated from the following files:


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