All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
pcl_cloud_algos::DepthImageTriangulation Class Reference

#include <depth_image_triangulation.h>

Inheritance diagram for pcl_cloud_algos::DepthImageTriangulation:
Inheritance graph
[legend]

List of all members.

Classes

struct  triangle
 triangle points More...

Public Types

typedef sensor_msgs::PointCloud2 InputType
typedef
triangle_mesh_msgs::TriangleMesh 
OutputType

Public Member Functions

ros::Publisher createPublisher (ros::NodeHandle &nh)
 DepthImageTriangulation ()
float dist_3d (const pcl::PointCloud< pcl::PointXYZINormalScanLine > &cloud_in, int a, int b)
 computes distance between 2 points
void get_scan_and_point_id (pcl::PointCloud< pcl::PointXYZINormalScanLine > &cloud_in)
 get scan and point id for hokuyo scans
void init (ros::NodeHandle &)
boost::shared_ptr< const
OutputType
output ()
void post ()
void pre ()
std::string process (const boost::shared_ptr< const InputType > &)
std::vector< std::stringprovides ()
std::vector< std::stringrequires ()
void write_vtk_file (std::string output, std::vector< triangle > triangles, const pcl::PointCloud< pcl::PointXYZINormalScanLine > &cloud_in, int nr_tr)
 writes triangulation result to a VTK file for visualization purposes

Static Public Member Functions

static std::string default_input_topic ()
static std::string default_node_name ()
static std::string default_output_topic ()

Private Attributes

boost::mutex cloud_lock_
 lock the function when restoring line id
pcl::PointCloud
< pcl::PointXYZINormalScanLine
cloud_with_line_
 working point cloud
signed int index_nr_in_channel_
signed int line_nr_in_channel_
 channel indices for line and index in point cloud msg
int max_index_
 max index and max line in point cloud
float max_length
 max allowed length between triangle's line segments
int max_line_
boost::shared_ptr< OutputTypemesh_
 resultant output triangulated map
ros::NodeHandle nh_
bool save_pcd_
bool write_to_vtk_
 write output to vtk yes/no, save PCD file yes/no

Detailed Description

Definition at line 54 of file depth_image_triangulation.h.


Member Typedef Documentation

typedef sensor_msgs::PointCloud2 pcl_cloud_algos::DepthImageTriangulation::InputType

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 64 of file depth_image_triangulation.h.

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 65 of file depth_image_triangulation.h.


Constructor & Destructor Documentation

Definition at line 118 of file depth_image_triangulation.h.


Member Function Documentation

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 128 of file depth_image_triangulation.h.

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 74 of file depth_image_triangulation.h.

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 80 of file depth_image_triangulation.h.

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 68 of file depth_image_triangulation.h.

computes distance between 2 points

Parameters:
cloud_in
inta
intb

Definition at line 92 of file depth_image_triangulation.cpp.

get scan and point id for hokuyo scans

Parameters:
sensor_msg::PointCloud

Definition at line 51 of file depth_image_triangulation.cpp.

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 100 of file depth_image_triangulation.cpp.

Reimplemented from pcl_cloud_algos::CloudAlgo.

Definition at line 448 of file depth_image_triangulation.cpp.

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 115 of file depth_image_triangulation.cpp.

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 109 of file depth_image_triangulation.cpp.

std::string DepthImageTriangulation::process ( const boost::shared_ptr< const InputType > &  )

Definition at line 142 of file depth_image_triangulation.cpp.

std::vector< std::string > DepthImageTriangulation::provides ( ) [virtual]

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 134 of file depth_image_triangulation.cpp.

std::vector< std::string > DepthImageTriangulation::requires ( ) [virtual]

Implements pcl_cloud_algos::CloudAlgo.

Definition at line 121 of file depth_image_triangulation.cpp.

void DepthImageTriangulation::write_vtk_file ( std::string  output,
std::vector< triangle triangles,
const pcl::PointCloud< pcl::PointXYZINormalScanLine > &  cloud_in,
int  nr_tr 
)

writes triangulation result to a VTK file for visualization purposes

Parameters:
output[]output vtk file
trianglesvector of triangles
&cloud_in
nr_trnumber of triangles

Definition at line 410 of file depth_image_triangulation.cpp.


Member Data Documentation

lock the function when restoring line id

Definition at line 136 of file depth_image_triangulation.h.

working point cloud

Definition at line 142 of file depth_image_triangulation.h.

Definition at line 148 of file depth_image_triangulation.h.

channel indices for line and index in point cloud msg

Definition at line 148 of file depth_image_triangulation.h.

max index and max line in point cloud

Definition at line 145 of file depth_image_triangulation.h.

max allowed length between triangle's line segments

Definition at line 151 of file depth_image_triangulation.h.

Definition at line 145 of file depth_image_triangulation.h.

resultant output triangulated map

Definition at line 157 of file depth_image_triangulation.h.

Definition at line 139 of file depth_image_triangulation.h.

Definition at line 154 of file depth_image_triangulation.h.

write output to vtk yes/no, save PCD file yes/no

Definition at line 154 of file depth_image_triangulation.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


pcl_cloud_algos
Author(s): Nico Blodow, Dejan Pangercic, Zoltan-Csaba Marton
autogenerated on Sun Oct 6 2013 12:05:19