Fawkes API  Fawkes Development Version
fawkes::pcl_utils::PlaneDistanceComparison< PointT > Class Template Reference

Compare points' distance to a plane. More...

#include <comparisons.h>

Inheritance diagram for fawkes::pcl_utils::PlaneDistanceComparison< PointT >:

Public Types

typedef boost::shared_ptr< PlaneDistanceComparison< PointT > > Ptr
 Shared pointer. More...
 
typedef boost::shared_ptr< const PlaneDistanceComparison< PointT > > ConstPtr
 Constant shared pointer. More...
 

Public Member Functions

 PlaneDistanceComparison (pcl::ModelCoefficients::ConstPtr coeff, pcl::ComparisonOps::CompareOp op=pcl::ComparisonOps::GT, float compare_val=0.)
 Constructor. More...
 
virtual ~PlaneDistanceComparison ()
 Virtual empty destructor. More...
 
virtual bool evaluate (const PointT &point) const
 Evaluate for given pixel. More...
 

Protected Attributes

pcl::ModelCoefficients::ConstPtr coeff_
 Planar model coefficients. More...
 
pcl::ComparisonOps::CompareOp op_
 Comparison operation. More...
 
float compare_val_
 Value to compare against. More...
 

Detailed Description

template<typename PointT>
class fawkes::pcl_utils::PlaneDistanceComparison< PointT >

Compare points' distance to a plane.

This comparison calculates the distance to a given plane and makes a decision based on constructor flag and threshold.

Author
Tim Niemueller

Definition at line 98 of file comparisons.h.

Member Typedef Documentation

◆ ConstPtr

template<typename PointT>
typedef boost::shared_ptr<const PlaneDistanceComparison<PointT> > fawkes::pcl_utils::PlaneDistanceComparison< PointT >::ConstPtr

Constant shared pointer.

Definition at line 105 of file comparisons.h.

◆ Ptr

template<typename PointT>
typedef boost::shared_ptr<PlaneDistanceComparison<PointT> > fawkes::pcl_utils::PlaneDistanceComparison< PointT >::Ptr

Shared pointer.

Definition at line 103 of file comparisons.h.

Constructor & Destructor Documentation

◆ PlaneDistanceComparison()

template<typename PointT>
fawkes::pcl_utils::PlaneDistanceComparison< PointT >::PlaneDistanceComparison ( pcl::ModelCoefficients::ConstPtr  coeff,
pcl::ComparisonOps::CompareOp  op = pcl::ComparisonOps::GT,
float  compare_val = 0. 
)
inline

Constructor.

Parameters
coeffplanar model coefficients
opcomparison operation
compare_valvalue to compare against

Definition at line 112 of file comparisons.h.

◆ ~PlaneDistanceComparison()

template<typename PointT>
virtual fawkes::pcl_utils::PlaneDistanceComparison< PointT >::~PlaneDistanceComparison ( )
inlinevirtual

Virtual empty destructor.

Definition at line 120 of file comparisons.h.

Member Function Documentation

◆ evaluate()

template<typename PointT>
virtual bool fawkes::pcl_utils::PlaneDistanceComparison< PointT >::evaluate ( const PointT &  point) const
inlinevirtual

Evaluate for given pixel.

Parameters
pointpoint to compare
Returns
true if the setup operation using the compare value evaluates to true, false otherwise

Definition at line 126 of file comparisons.h.

Member Data Documentation

◆ coeff_

template<typename PointT>
pcl::ModelCoefficients::ConstPtr fawkes::pcl_utils::PlaneDistanceComparison< PointT >::coeff_
protected

Planar model coefficients.

Definition at line 151 of file comparisons.h.

◆ compare_val_

template<typename PointT>
float fawkes::pcl_utils::PlaneDistanceComparison< PointT >::compare_val_
protected

Value to compare against.

Definition at line 155 of file comparisons.h.

◆ op_

template<typename PointT>
pcl::ComparisonOps::CompareOp fawkes::pcl_utils::PlaneDistanceComparison< PointT >::op_
protected

Comparison operation.

Definition at line 153 of file comparisons.h.


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