Public Types | Public Member Functions | Public Attributes | Protected Attributes | Private Attributes
ZyonzImageBasedLeafProbingAlgorithm Class Reference

IRI ROS Specific Driver Class. More...

#include <zyonz_image_based_leaf_probing_alg.h>

List of all members.

Public Types

typedef
zyonz_image_based_leaf_probing::ZyonzImageBasedLeafProbingConfig 
Config
 define config type

Public Member Functions

void config_update (Config &new_cfg, uint32_t level=0)
 config update
void find_probing_pose (const Eigen::Vector3f probing_point, const Eigen::Vector3f x_vector, const Eigen::Vector3f normal_vector, Eigen::Quaternionf &probing_pose)
void find_probing_pose_by_PCA (const int label, int **clusters, const image< rgb > *pc, Eigen::Quaternionf &probing_pose, Eigen::Vector3f &normal_vector)
cv_bridge::CvImagePtr get_confidence_image ()
float get_k ()
bool get_leaf_probing_point (const sensor_msgs::PointCloud2::ConstPtr &msg)
int get_min_size ()
Eigen::Vector3f get_probing_point ()
zyonz_msgs::ProbingSteps get_probing_step ()
cv_bridge::CvImagePtr get_seg_image ()
float get_sigma ()
void lock (void)
 Lock Algorithm.
void set_k (float new_k)
void set_min_size (int new_min_size)
void set_sigma (float new_sigma)
bool try_enter (void)
 Tries Access to Algorithm.
void unlock (void)
 Unlock Algorithm.
 ZyonzImageBasedLeafProbingAlgorithm (void)
 constructor
 ~ZyonzImageBasedLeafProbingAlgorithm (void)
 Destructor.

Public Attributes

Config config_
 config variable

Protected Attributes

CMutex alg_mutex_
 define config type

Private Attributes

cv_bridge::CvImagePtr confidence_cv_ptr_
double * goal_parameters_
float k_
image< rgb > * leaf_confidence_
size_t min_size_
pcl::PointCloud< pcl::PointXYZRGB > pcl_xyzrgb_
Eigen::Vector3f probing_point_
zyonz_msgs::ProbingSteps probing_step_
cv_bridge::CvImagePtr seg_cv_ptr_
float sigma_
tf::TransformListener tf_listener_

Detailed Description

IRI ROS Specific Driver Class.

Definition at line 48 of file zyonz_image_based_leaf_probing_alg.h.


Member Typedef Documentation

typedef zyonz_image_based_leaf_probing::ZyonzImageBasedLeafProbingConfig ZyonzImageBasedLeafProbingAlgorithm::Config

define config type

Define a Config type with the ZyonzImageBasedLeafProbingConfig. All driver implementations will then use the same variable type Config.

Definition at line 82 of file zyonz_image_based_leaf_probing_alg.h.


Constructor & Destructor Documentation

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 12 of file zyonz_image_based_leaf_probing_alg.cpp.

Destructor.

This destructor is called when the object is about to be destroyed.

Definition at line 17 of file zyonz_image_based_leaf_probing_alg.cpp.


Member Function Documentation

void ZyonzImageBasedLeafProbingAlgorithm::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.

Parameters:
new_cfgthe new driver configuration state
levellevel in which the update is taken place

Definition at line 21 of file zyonz_image_based_leaf_probing_alg.cpp.

void ZyonzImageBasedLeafProbingAlgorithm::find_probing_pose ( const Eigen::Vector3f  probing_point,
const Eigen::Vector3f  x_vector,
const Eigen::Vector3f  normal_vector,
Eigen::Quaternionf &  probing_pose 
)

Definition at line 217 of file zyonz_image_based_leaf_probing_alg.cpp.

void ZyonzImageBasedLeafProbingAlgorithm::find_probing_pose_by_PCA ( const int  label,
int **  clusters,
const image< rgb > *  pc,
Eigen::Quaternionf &  probing_pose,
Eigen::Vector3f &  normal_vector 
)

Definition at line 241 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 332 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 320 of file zyonz_image_based_leaf_probing_alg.cpp.

bool ZyonzImageBasedLeafProbingAlgorithm::get_leaf_probing_point ( const sensor_msgs::PointCloud2::ConstPtr &  msg)

Definition at line 41 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 324 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 336 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 341 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 328 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 316 of file zyonz_image_based_leaf_probing_alg.cpp.

Lock Algorithm.

Locks access to the Algorithm class

Definition at line 107 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 308 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 312 of file zyonz_image_based_leaf_probing_alg.cpp.

Definition at line 304 of file zyonz_image_based_leaf_probing_alg.cpp.

Tries Access to Algorithm.

Tries access to Algorithm

Returns:
true if the lock was adquired, false otherwise

Definition at line 123 of file zyonz_image_based_leaf_probing_alg.h.

Unlock Algorithm.

Unlocks access to the Algorithm class

Definition at line 114 of file zyonz_image_based_leaf_probing_alg.h.


Member Data Documentation

define config type

Define a Config type with the ZyonzImageBasedLeafProbingConfig. All driver implementations will then use the same variable type Config.

Definition at line 57 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 63 of file zyonz_image_based_leaf_probing_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 90 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 71 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 67 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 70 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 68 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 61 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 72 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 73 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 62 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 66 of file zyonz_image_based_leaf_probing_alg.h.

Definition at line 64 of file zyonz_image_based_leaf_probing_alg.h.


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


zyonz_image_based_leaf_probing
Author(s): Sergi Foix
autogenerated on Fri Dec 6 2013 23:25:27