Package org.robwork.sdurw_graspplanning
Class ContactDistThresFilter
- java.lang.Object
-
- org.robwork.sdurw_graspplanning.GraspValidateFilter
-
- org.robwork.sdurw_graspplanning.ContactDistThresFilter
-
public class ContactDistThresFilter extends GraspValidateFilter
tests if contact points in a grasp is too close or too far from each other.
Two points that are very close is not allowed unless they are approached from opposite
directions.
-
-
Constructor Summary
Constructors Constructor Description ContactDistThresFilter(double minDist, double maxDist)
constructorContactDistThresFilter(double minDist, double maxDist, boolean allowCloseWhenOpposite)
constructorContactDistThresFilter(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(ContactDistThresFilter obj)
boolean
isContactPairValid(Contact3D c1, Contact3D c2)
tests if the contact pair is valid according to this filterboolean
isValid(Grasp3D grasp)
tests if a grasp grasp is valid in regard to the criterias
of the class that implements this function.-
Methods inherited from class org.robwork.sdurw_graspplanning.GraspValidateFilter
getCPtr
-
-
-
-
Constructor Detail
-
ContactDistThresFilter
public ContactDistThresFilter(long cPtr, boolean cMemoryOwn)
-
ContactDistThresFilter
public ContactDistThresFilter(double minDist, double maxDist, boolean allowCloseWhenOpposite)
constructor- Parameters:
minDist
- [in] minimum allowed distance between contact pointsmaxDist
- [in] maximum allowed distance between contact pointsallowCloseWhenOpposite
- [in] if true small distances are allowed when contact
normals are in opposite directions
-
ContactDistThresFilter
public ContactDistThresFilter(double minDist, double maxDist)
constructor- Parameters:
minDist
- [in] minimum allowed distance between contact pointsmaxDist
- [in] maximum allowed distance between contact points
-
-
Method Detail
-
getCPtr
public static long getCPtr(ContactDistThresFilter obj)
-
delete
public void delete()
- Overrides:
delete
in classGraspValidateFilter
-
isValid
public boolean isValid(Grasp3D grasp)
Description copied from class:GraspValidateFilter
tests if a grasp grasp is valid in regard to the criterias
of the class that implements this function.- Overrides:
isValid
in classGraspValidateFilter
- Parameters:
grasp
-- Returns:
-
-