Classes | Public Member Functions | Private Member Functions
HandleSearch Class Reference

Search handles given grasp hypotheses. More...

#include <handle_search.h>

List of all members.

Classes

struct  LastElementComparator
 Comparator for equality of the last element of two 2D-vectors. More...
struct  VectorFirstTwoElementsComparator
 Comparator for equality of the first two elements of two 3D-vectors. More...

Public Member Functions

std::vector< HandlefindHandles (const std::vector< GraspHypothesis > &hand_list, int min_inliers, double min_length)
 Search for handles given a list of grasp hypotheses.

Private Member Functions

double safeAcos (double x)
 Safe version of the acos(x) function.
bool shortenHandle (std::vector< Eigen::Vector2d > &inliers, double gap_threshold)
 Shorten a handle to a continuous piece.

Detailed Description

Search handles given grasp hypotheses.

HandleSearch class

This class searches for handles, i.e., clusters of grasps that are geometrically aligned. It can also plot the results of this search.

Definition at line 57 of file handle_search.h.


Member Function Documentation

std::vector< Handle > HandleSearch::findHandles ( const std::vector< GraspHypothesis > &  hand_list,
int  min_inliers,
double  min_length 
)

Search for handles given a list of grasp hypotheses.

Parameters:
hand_listthe list of grasp hypotheses
min_inliersthe minimum number of grasp hypothesis contained in a handle
min_lengththe minimum length of a handle
Returns:
the list of handles found

Definition at line 4 of file handle_search.cpp.

double HandleSearch::safeAcos ( double  x) [private]

Safe version of the acos(x) function.

Parameters:
xthe value whose arc cosine is computed
Returns:
the arc cosine of x, expressed in radians

Definition at line 121 of file handle_search.cpp.

bool HandleSearch::shortenHandle ( std::vector< Eigen::Vector2d > &  inliers,
double  gap_threshold 
) [private]

Shorten a handle to a continuous piece.

This function finds continuous handles by searching for a gap that is larger than gap_threshold.

Parameters:
inliersthe list of grasp hypotheses that are part of the handle to be shortened
gap_thresholdthe maximum gap size
Returns:
the shortened handle

Definition at line 92 of file handle_search.cpp.


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


agile_grasp
Author(s): Andreas ten Pas
autogenerated on Sat Jun 8 2019 20:08:27