#include <hpp/affordance/operations.hh>
|
| LeanOperation (const double margin=0.3, const double nbTriMargin=0.3, const double minArea=0.05, const char *affordanceName="Lean") |
|
bool | requirement (const fcl::Vec3f &normal) |
|
| OperationBase () |
|
| OperationBase (const double margin=0.3, const double nbTriMargin=0.3, const double minArea=0.05, const char *affordanceName="noAffordance") |
|
Class that contains the information needed to create affordance objects of type Lean. Inherits the OperationBase class.
◆ LeanOperation()
hpp::affordance::LeanOperation::LeanOperation |
( |
const double |
margin = 0.3 , |
|
|
const double |
nbTriMargin = 0.3 , |
|
|
const double |
minArea = 0.05 , |
|
|
const char * |
affordanceName = "Lean" |
|
) |
| |
|
inlineexplicit |
Constructor that takes in user-defined parameters
- Parameters
-
margin | Margin needed for the evaluation of the requirement function |
nbTriMargin | Margin between two triangles tested for a single affordance surface. If the angle between two triangles is greater than the provided margin, the triangles cannot be part of the same affordance surface. |
minArea | Minimum area needed for the formation of an affordance object |
affordanceName | The name of the affordance type |
◆ requirement()
bool hpp::affordance::LeanOperation::requirement |
( |
const fcl::Vec3f & |
normal | ) |
|
|
inlinevirtual |
The implementation of the requirement function for Lean affordances overrides the virtual function in class OperationBase.
- Parameters
-
nromal | Normal vector of the tested triangle. |
Implements hpp::affordance::OperationBase.
The documentation for this class was generated from the following file: