40 #ifndef PCL_COMMON_GENERATE_H_ 41 #define PCL_COMMON_GENERATE_H_ 43 #include <pcl/point_cloud.h> 44 #include <pcl/point_types.h> 45 #include <pcl/common/random.h> 58 template <
typename Po
intT,
typename GeneratorT>
79 const GeneratorParameters& y_params,
80 const GeneratorParameters& z_params);
107 const GeneratorParameters&
111 const GeneratorParameters&
115 const GeneratorParameters&
140 GeneratorT x_generator_, y_generator_, z_generator_;
143 template <
typename GeneratorT>
154 const GeneratorParameters& y_params);
165 const GeneratorParameters&
168 const GeneratorParameters&
181 GeneratorT x_generator_;
182 GeneratorT y_generator_;
187 #include <pcl/common/impl/generate.hpp> void setParametersForX(const GeneratorParameters &x_params)
Set parameters for x values generation.
GeneratorT::Parameters GeneratorParameters
GeneratorT::Parameters GeneratorParameters
A 2D point structure representing Euclidean xy coordinates.
const GeneratorParameters & getParametersForY() const
CloudGenerator()
Default constructor.
const GeneratorParameters & getParametersForX() const
PointCloud represents the base class in PCL for storing collections of 3D points. ...
void setParametersForY(const GeneratorParameters &y_params)
Set parameters for y values generation.
void setParameters(const GeneratorParameters ¶ms)
Set parameters for x, y and z values.
void setParametersForZ(const GeneratorParameters &z_params)
Set parameters for z values generation.
A point structure representing Euclidean xyz coordinates, and the RGB color.
const GeneratorParameters & getParametersForZ() const
int fill(pcl::PointCloud< PointT > &cloud)
Generates a cloud with X Y Z picked within given ranges.