IRI ROS Specific Driver Class. More...
#include <filter_table_alg.h>
Public Types | |
typedef iri_filter_table::FilterTableConfig | Config |
define config type | |
Public Member Functions | |
void | config_update (Config &new_cfg, uint32_t level=0) |
config update | |
pcl::PointCloud < pcl::PointXYZRGB >::Ptr | filter_table (const sensor_msgs::PointCloud2::ConstPtr &cloud_blob) |
FilterTableAlgorithm (void) | |
constructor | |
void | lock (void) |
Lock Algorithm. | |
float | set_filter_final_ratio (float filter_final_ratio) |
float | set_max_z (float max_z) |
float | set_rad_radius_search (float rad_radius_search) |
float | set_sac_dist_thr (float sac_dist_thr) |
bool | try_enter (void) |
Tries Access to Algorithm. | |
void | unlock (void) |
Unlock Algorithm. | |
~FilterTableAlgorithm (void) | |
Destructor. | |
Public Attributes | |
Config | config_ |
config variable | |
Protected Attributes | |
CMutex | alg_mutex_ |
define config type | |
float | filter_final_ratio_ |
float | max_z_ |
float | rad_radius_search_ |
float | sac_dist_thr_ |
IRI ROS Specific Driver Class.
Definition at line 51 of file filter_table_alg.h.
typedef iri_filter_table::FilterTableConfig FilterTableAlgorithm::Config |
define config type
Define a Config type with the FilterTableConfig. All driver implementations will then use the same variable type Config.
Definition at line 75 of file filter_table_alg.h.
constructor
In this constructor parameters related to the specific driver can be initalized. Those parameters can be also set in the openDriver() function. Attributes from the main node driver class IriBaseDriver such as loop_rate, may be also overload here.
Definition at line 3 of file filter_table_alg.cpp.
Destructor.
This destructor is called when the object is about to be destroyed.
Definition at line 11 of file filter_table_alg.cpp.
void FilterTableAlgorithm::config_update | ( | Config & | new_cfg, |
uint32_t | level = 0 |
||
) |
config update
In this function the driver parameters must be updated with the input config variable. Then the new configuration state will be stored in the Config attribute.
new_cfg | the new driver configuration state |
level | level in which the update is taken place |
Definition at line 15 of file filter_table_alg.cpp.
pcl::PointCloud< pcl::PointXYZRGB >::Ptr FilterTableAlgorithm::filter_table | ( | const sensor_msgs::PointCloud2::ConstPtr & | cloud_blob | ) |
Definition at line 44 of file filter_table_alg.cpp.
void FilterTableAlgorithm::lock | ( | void | ) | [inline] |
Lock Algorithm.
Locks access to the Algorithm class
Definition at line 100 of file filter_table_alg.h.
float FilterTableAlgorithm::set_filter_final_ratio | ( | float | filter_final_ratio | ) | [inline] |
Definition at line 145 of file filter_table_alg.h.
float FilterTableAlgorithm::set_max_z | ( | float | max_z | ) | [inline] |
Definition at line 133 of file filter_table_alg.h.
float FilterTableAlgorithm::set_rad_radius_search | ( | float | rad_radius_search | ) | [inline] |
Definition at line 151 of file filter_table_alg.h.
float FilterTableAlgorithm::set_sac_dist_thr | ( | float | sac_dist_thr | ) | [inline] |
Definition at line 139 of file filter_table_alg.h.
bool FilterTableAlgorithm::try_enter | ( | void | ) | [inline] |
Tries Access to Algorithm.
Tries access to Algorithm
Definition at line 116 of file filter_table_alg.h.
void FilterTableAlgorithm::unlock | ( | void | ) | [inline] |
Unlock Algorithm.
Unlocks access to the Algorithm class
Definition at line 107 of file filter_table_alg.h.
CMutex FilterTableAlgorithm::alg_mutex_ [protected] |
define config type
Define a Config type with the FilterTableConfig. All driver implementations will then use the same variable type Config.
Definition at line 60 of file filter_table_alg.h.
config variable
This variable has all the driver parameters defined in the cfg config file. Is updated everytime function config_update() is called.
Definition at line 83 of file filter_table_alg.h.
float FilterTableAlgorithm::filter_final_ratio_ [protected] |
Definition at line 65 of file filter_table_alg.h.
float FilterTableAlgorithm::max_z_ [protected] |
Definition at line 63 of file filter_table_alg.h.
float FilterTableAlgorithm::rad_radius_search_ [protected] |
Definition at line 66 of file filter_table_alg.h.
float FilterTableAlgorithm::sac_dist_thr_ [protected] |
Definition at line 64 of file filter_table_alg.h.