IRI ROS Specific Driver Class. More...
#include <pointcloud_to_mesh_alg.h>
Public Types | |
typedef iri_pointcloud_to_mesh::PointCloudToMeshConfig | Config |
define config type | |
Public Member Functions | |
bool | compute_mesh (const sensor_msgs::PointCloud2::ConstPtr &msg) |
bool | compute_mesh (pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud) |
void | config_update (Config &new_cfg, uint32_t level=0) |
config update | |
void | lock (void) |
Lock Algorithm. | |
PointCloudToMeshAlgorithm (void) | |
constructor | |
void | set_down_res (double down_res) |
void | set_max_angle (double max_ang) |
void | set_max_surface_angle (double max_surf_angle) |
void | set_min_angle (double min_ang) |
void | set_mu (double mu) |
void | set_normal_consistency (bool norm_consistency) |
void | set_num_of_neigh (unsigned int num_neigh) |
void | set_radius (double radius) |
bool | try_enter (void) |
Tries Access to Algorithm. | |
void | unlock (void) |
Unlock Algorithm. | |
~PointCloudToMeshAlgorithm (void) | |
Destructor. | |
Public Attributes | |
Config | config_ |
config variable | |
Protected Attributes | |
CMutex | alg_mutex_ |
define config type | |
Private Attributes | |
double | down_res_ |
double | max_ang_ |
double | max_surf_angle_ |
double | min_ang_ |
double | mu_ |
bool | norm_consistency_ |
unsigned int | num_neigh_ |
double | radius_ |
IRI ROS Specific Driver Class.
Definition at line 48 of file pointcloud_to_mesh_alg.h.
typedef iri_pointcloud_to_mesh::PointCloudToMeshConfig PointCloudToMeshAlgorithm::Config |
define config type
Define a Config type with the PointCloudToMeshConfig. All driver implementations will then use the same variable type Config.
Definition at line 78 of file pointcloud_to_mesh_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 pointcloud_to_mesh_alg.cpp.
Destructor.
This destructor is called when the object is about to be destroyed.
Definition at line 10 of file pointcloud_to_mesh_alg.cpp.
bool PointCloudToMeshAlgorithm::compute_mesh | ( | const sensor_msgs::PointCloud2::ConstPtr & | msg | ) |
Definition at line 25 of file pointcloud_to_mesh_alg.cpp.
bool PointCloudToMeshAlgorithm::compute_mesh | ( | pcl::PointCloud< pcl::PointXYZ >::Ptr & | cloud | ) |
Definition at line 34 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::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 14 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::lock | ( | void | ) | [inline] |
Lock Algorithm.
Locks access to the Algorithm class
Definition at line 103 of file pointcloud_to_mesh_alg.h.
void PointCloudToMeshAlgorithm::set_down_res | ( | double | down_res | ) |
Definition at line 89 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_max_angle | ( | double | max_ang | ) |
Definition at line 113 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_max_surface_angle | ( | double | max_surf_angle | ) |
Definition at line 105 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_min_angle | ( | double | min_ang | ) |
Definition at line 109 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_mu | ( | double | mu | ) |
Definition at line 97 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_normal_consistency | ( | bool | norm_consistency | ) |
Definition at line 117 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_num_of_neigh | ( | unsigned int | num_neigh | ) |
Definition at line 101 of file pointcloud_to_mesh_alg.cpp.
void PointCloudToMeshAlgorithm::set_radius | ( | double | radius | ) |
Definition at line 93 of file pointcloud_to_mesh_alg.cpp.
bool PointCloudToMeshAlgorithm::try_enter | ( | void | ) | [inline] |
Tries Access to Algorithm.
Tries access to Algorithm
Definition at line 119 of file pointcloud_to_mesh_alg.h.
void PointCloudToMeshAlgorithm::unlock | ( | void | ) | [inline] |
Unlock Algorithm.
Unlocks access to the Algorithm class
Definition at line 110 of file pointcloud_to_mesh_alg.h.
CMutex PointCloudToMeshAlgorithm::alg_mutex_ [protected] |
define config type
Define a Config type with the PointCloudToMeshConfig. All driver implementations will then use the same variable type Config.
Definition at line 67 of file pointcloud_to_mesh_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 86 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::down_res_ [private] |
Definition at line 51 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::max_ang_ [private] |
Definition at line 57 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::max_surf_angle_ [private] |
Definition at line 55 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::min_ang_ [private] |
Definition at line 56 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::mu_ [private] |
Definition at line 53 of file pointcloud_to_mesh_alg.h.
Definition at line 58 of file pointcloud_to_mesh_alg.h.
unsigned int PointCloudToMeshAlgorithm::num_neigh_ [private] |
Definition at line 54 of file pointcloud_to_mesh_alg.h.
double PointCloudToMeshAlgorithm::radius_ [private] |
Definition at line 52 of file pointcloud_to_mesh_alg.h.