Public Types | Public Member Functions | Public Attributes | Private Member Functions | List of all members
cPcdFilterPaRosFilter Class Reference

#include <pcdfilter_pa_ros_filter.h>

Public Types

enum  { COUNT_PARAMETER = 3, COUNT_FRAME = 2 }
 
enum  eFiltertype {
  ftNONE = cPcdFilterPaFilter::ftNONE, ftCUBE = cPcdFilterPaFilter::ftCUBE, ftSPHERE = cPcdFilterPaFilter::ftSPHERE, ftBLOCK = cPcdFilterPaFilter::ftBLOCK,
  ftCYLINDER = cPcdFilterPaFilter::ftCYLINDER, ftCONE = cPcdFilterPaFilter::ftCONE, ftLINK
}
 

Public Member Functions

 cPcdFilterPaRosFilter ()
 
 cPcdFilterPaRosFilter (const cPcdFilterPaRosFilter &other)
 
bool fromString (const std::string &filter)
 setting filter from string More...
 
bool isValid (void) const
 returning if filter is valid More...
 
cPcdFilterPaRosFilteroperator= (const cPcdFilterPaRosFilter &other)
 
void reset (void)
 reseting this filter More...
 
std::string toString (void) const
 returning string equivalent of filter More...
 

Public Attributes

std::string comment_
 comment to filter More...
 
std::string frame_ [COUNT_FRAME]
 frame id(s) More...
 
bool inverse_
 inverted filter More...
 
tf::Transform offset_ [COUNT_FRAME]
 
double parameter_ [COUNT_PARAMETER]
 single parameter of filter More...
 
bool required_
 required filter More...
 
eFiltertype type_
 filter type More...
 

Private Member Functions

bool _checkSymbol (const std::string &str, int &pos, const char symbol) const
 helper function for checking a certain symbol More...
 
std::string _floatToStr (const double &value) const
 helper function for converting a double More...
 
std::string _getComment (const std::string &str) const
 helper function for returning the comment More...
 
std::string _getValue (const std::string &str, int &pos) const
 helper function for returning the next value More...
 
bool _skipWhitespace (const std::string &str, int &pos) const
 helper function for skipping whitespace More...
 
bool _StrToFloat (const std::string &str, double &value) const
 helper function for converting a double More...
 

Detailed Description

Definition at line 64 of file pcdfilter_pa_ros_filter.h.

Member Enumeration Documentation

anonymous enum
Enumerator
COUNT_PARAMETER 
COUNT_FRAME 

Definition at line 75 of file pcdfilter_pa_ros_filter.h.

Enumerator
ftNONE 
ftCUBE 
ftSPHERE 
ftBLOCK 
ftCYLINDER 
ftCONE 
ftLINK 

Definition at line 66 of file pcdfilter_pa_ros_filter.h.

Constructor & Destructor Documentation

cPcdFilterPaRosFilter::cPcdFilterPaRosFilter ( void  )

Definition at line 57 of file pcdfilter_pa_ros_filter.cpp.

cPcdFilterPaRosFilter::cPcdFilterPaRosFilter ( const cPcdFilterPaRosFilter other)

Definition at line 63 of file pcdfilter_pa_ros_filter.cpp.

Member Function Documentation

bool cPcdFilterPaRosFilter::_checkSymbol ( const std::string &  str,
int &  pos,
const char  symbol 
) const
private

helper function for checking a certain symbol

Definition at line 349 of file pcdfilter_pa_ros_filter.cpp.

std::string cPcdFilterPaRosFilter::_floatToStr ( const double &  value) const
private

helper function for converting a double

Definition at line 403 of file pcdfilter_pa_ros_filter.cpp.

std::string cPcdFilterPaRosFilter::_getComment ( const std::string &  str) const
private

helper function for returning the comment

Definition at line 391 of file pcdfilter_pa_ros_filter.cpp.

std::string cPcdFilterPaRosFilter::_getValue ( const std::string &  str,
int &  pos 
) const
private

helper function for returning the next value

Definition at line 365 of file pcdfilter_pa_ros_filter.cpp.

bool cPcdFilterPaRosFilter::_skipWhitespace ( const std::string &  str,
int &  pos 
) const
private

helper function for skipping whitespace

Definition at line 321 of file pcdfilter_pa_ros_filter.cpp.

bool cPcdFilterPaRosFilter::_StrToFloat ( const std::string &  str,
double &  value 
) const
private

helper function for converting a double

Definition at line 412 of file pcdfilter_pa_ros_filter.cpp.

bool cPcdFilterPaRosFilter::fromString ( const std::string &  filter)

setting filter from string

Definition at line 93 of file pcdfilter_pa_ros_filter.cpp.

bool cPcdFilterPaRosFilter::isValid ( void  ) const

returning if filter is valid

Definition at line 315 of file pcdfilter_pa_ros_filter.cpp.

cPcdFilterPaRosFilter & cPcdFilterPaRosFilter::operator= ( const cPcdFilterPaRosFilter other)

Definition at line 70 of file pcdfilter_pa_ros_filter.cpp.

void cPcdFilterPaRosFilter::reset ( void  )

reseting this filter

Definition at line 299 of file pcdfilter_pa_ros_filter.cpp.

std::string cPcdFilterPaRosFilter::toString ( void  ) const

returning string equivalent of filter

Definition at line 194 of file pcdfilter_pa_ros_filter.cpp.

Member Data Documentation

std::string cPcdFilterPaRosFilter::comment_

comment to filter

Definition at line 104 of file pcdfilter_pa_ros_filter.h.

std::string cPcdFilterPaRosFilter::frame_[COUNT_FRAME]

frame id(s)

Definition at line 98 of file pcdfilter_pa_ros_filter.h.

bool cPcdFilterPaRosFilter::inverse_

inverted filter

Definition at line 86 of file pcdfilter_pa_ros_filter.h.

tf::Transform cPcdFilterPaRosFilter::offset_[COUNT_FRAME]

Definition at line 101 of file pcdfilter_pa_ros_filter.h.

double cPcdFilterPaRosFilter::parameter_[COUNT_PARAMETER]

single parameter of filter

Definition at line 95 of file pcdfilter_pa_ros_filter.h.

bool cPcdFilterPaRosFilter::required_

required filter

Definition at line 92 of file pcdfilter_pa_ros_filter.h.

eFiltertype cPcdFilterPaRosFilter::type_

filter type

Definition at line 89 of file pcdfilter_pa_ros_filter.h.


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


pcdfilter_pa
Author(s):
autogenerated on Mon Dec 23 2019 03:56:23