IRI ROS Specific Driver Class. More...
#include <filter_jump_edge_alg.h>
Public Types | |
typedef iri_filter_jump_edge::FilterJumpEdgeConfig | Config |
define config type | |
Public Member Functions | |
bool | apply_jump_edge_filter (const sensor_msgs::PointCloud2::ConstPtr &msg) |
void | config_update (Config &new_cfg, uint32_t level=0) |
config update | |
FilterJumpEdgeAlgorithm (void) | |
constructor | |
sensor_msgs::PointCloud2 * | get_filtered_pc (void) |
sensor_msgs::Image * | get_residual_img (void) |
sensor_msgs::PointCloud2 * | get_residual_pc (void) |
void | lock (void) |
Lock Algorithm. | |
void | set_ang_thr (double ang_thr) |
void | set_skw (double skw) |
void | set_sx (double sx) |
void | set_sy (double sy) |
void | set_u0 (double u0) |
void | set_v0 (double v0) |
bool | try_enter (void) |
Tries Access to Algorithm. | |
void | unlock (void) |
Unlock Algorithm. | |
~FilterJumpEdgeAlgorithm (void) | |
Destructor. | |
Public Attributes | |
Config | config_ |
config variable | |
Protected Attributes | |
CMutex | alg_mutex_ |
define config type | |
Private Attributes | |
double | ang_thr_ |
sensor_msgs::PointCloud2 | filtered_pc_ |
sensor_msgs::Image | residual_img_ |
sensor_msgs::PointCloud2 | residual_pc_ |
double | skw_ |
double | sx_ |
double | sy_ |
double | u0_ |
double | v0_ |
IRI ROS Specific Driver Class.
Definition at line 43 of file filter_jump_edge_alg.h.
typedef iri_filter_jump_edge::FilterJumpEdgeConfig FilterJumpEdgeAlgorithm::Config |
define config type
Define a Config type with the FilterJumpEdgeConfig. All driver implementations will then use the same variable type Config.
Definition at line 76 of file filter_jump_edge_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_jump_edge_alg.cpp.
Destructor.
This destructor is called when the object is about to be destroyed.
Definition at line 7 of file filter_jump_edge_alg.cpp.
bool FilterJumpEdgeAlgorithm::apply_jump_edge_filter | ( | const sensor_msgs::PointCloud2::ConstPtr & | msg | ) |
Definition at line 23 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::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 11 of file filter_jump_edge_alg.cpp.
sensor_msgs::PointCloud2 * FilterJumpEdgeAlgorithm::get_filtered_pc | ( | void | ) |
Definition at line 139 of file filter_jump_edge_alg.cpp.
sensor_msgs::Image * FilterJumpEdgeAlgorithm::get_residual_img | ( | void | ) |
Definition at line 149 of file filter_jump_edge_alg.cpp.
sensor_msgs::PointCloud2 * FilterJumpEdgeAlgorithm::get_residual_pc | ( | void | ) |
Definition at line 144 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::lock | ( | void | ) | [inline] |
Lock Algorithm.
Locks access to the Algorithm class
Definition at line 101 of file filter_jump_edge_alg.h.
void FilterJumpEdgeAlgorithm::set_ang_thr | ( | double | ang_thr | ) |
Definition at line 179 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::set_skw | ( | double | skw | ) |
Definition at line 174 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::set_sx | ( | double | sx | ) |
Definition at line 154 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::set_sy | ( | double | sy | ) |
Definition at line 159 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::set_u0 | ( | double | u0 | ) |
Definition at line 164 of file filter_jump_edge_alg.cpp.
void FilterJumpEdgeAlgorithm::set_v0 | ( | double | v0 | ) |
Definition at line 169 of file filter_jump_edge_alg.cpp.
bool FilterJumpEdgeAlgorithm::try_enter | ( | void | ) | [inline] |
Tries Access to Algorithm.
Tries access to Algorithm
Definition at line 117 of file filter_jump_edge_alg.h.
void FilterJumpEdgeAlgorithm::unlock | ( | void | ) | [inline] |
Unlock Algorithm.
Unlocks access to the Algorithm class
Definition at line 108 of file filter_jump_edge_alg.h.
CMutex FilterJumpEdgeAlgorithm::alg_mutex_ [protected] |
define config type
Define a Config type with the FilterJumpEdgeConfig. All driver implementations will then use the same variable type Config.
Definition at line 65 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::ang_thr_ [private] |
Definition at line 48 of file filter_jump_edge_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 84 of file filter_jump_edge_alg.h.
sensor_msgs::PointCloud2 FilterJumpEdgeAlgorithm::filtered_pc_ [private] |
Definition at line 53 of file filter_jump_edge_alg.h.
sensor_msgs::Image FilterJumpEdgeAlgorithm::residual_img_ [private] |
Definition at line 55 of file filter_jump_edge_alg.h.
sensor_msgs::PointCloud2 FilterJumpEdgeAlgorithm::residual_pc_ [private] |
Definition at line 54 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::skw_ [private] |
Definition at line 48 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::sx_ [private] |
Definition at line 48 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::sy_ [private] |
Definition at line 48 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::u0_ [private] |
Definition at line 48 of file filter_jump_edge_alg.h.
double FilterJumpEdgeAlgorithm::v0_ [private] |
Definition at line 48 of file filter_jump_edge_alg.h.