12 namespace grid_map_pcl_test {
15 std::uniform_real_distribution<double> heightDist(-2.0, 2.0);
16 const double maxXY = 3.0;
17 const double minXY = -3.0;
19 const unsigned int nPointsInCloud = 1000000;
28 const unsigned int nPointsInCloud = 10000;
29 std::uniform_real_distribution<double> meanDist(-10.0, 10.0);
30 std::uniform_real_distribution<double> sigmaDist(0.001, 0.1);
42 std::uniform_real_distribution<double> zDist(-10.0, 10.0);
43 std::uniform_int_distribution<int> xDist(10, 20);
44 std::uniform_int_distribution<int> yDist(25, 40);
48 cloud->points.emplace_back(*x, 0.0, zDist(
rndGenerator));
49 cloud->points.emplace_back(-(*x), 0.0, zDist(
rndGenerator));
50 cloud->points.emplace_back(0.0, *y, zDist(
rndGenerator));
51 cloud->points.emplace_back(0.0, -(*y), zDist(
rndGenerator));
52 cloud->is_dense =
true;
58 std::uniform_real_distribution<double> upperPlaneZDist(0.0, 10.0);
59 std::uniform_real_distribution<double> lowerPlaneZDist(-10.0, -5.0);
60 std::uniform_real_distribution<double> stdDevDist(0.001, 0.1);
62 const double maxXY = 1.0;
63 const double minXY = -1.0;
69 const unsigned int nPointsInCloud = 1000000;
80 std::uniform_real_distribution<double> heightDist(-10.0, 10.0);
81 std::uniform_real_distribution<double> stdDevDist(0.001, 0.1);
83 const double maxXY = 1.0;
84 const double minXY = -1.0;
90 const unsigned int nPointsInCloud = 1000000;
99 std::uniform_real_distribution<double> heightDist(-10.0, 10.0);
100 const double maxXY = 3.0;
101 const double minXY = -3.0;
102 const unsigned int nPointsInCloud = 100000;
110 const unsigned int nPointsInCloud = 1000;
111 std::uniform_real_distribution<double> sigmaDist(0.001, 0.015);
112 std::uniform_real_distribution<double> minZDist(-10.0, 10.0);
113 std::uniform_int_distribution<int> nDist(10, 20);
114 const double zStep = 2.0;
122 for (
int i = 0; i < *nBlobs; ++i) {
static Pointcloud::Ptr createNoisyPlane(double *height, double *stdDevZ)
Pointcloud::Ptr createNoisyPlanePointcloud(unsigned int nPoints, double minXY, double maxXY, double meanZ, double stdDevZ, std::mt19937 *generator)
static Pointcloud::Ptr createNBlobsAboveEachOther(double *minZ, double *stdDevZ, int *nBlobs)
static Pointcloud::Ptr createNoisyPointcloudOfStepTerrain(double *stepLocation, double *zHigh, double *zLow, double *stdDev)
static Pointcloud::Ptr createNoisyDoublePlane(double *minZ, double *stdDevZ)
std::mt19937 rndGenerator
static Pointcloud::Ptr createPerfectPlane(double *height)
static Pointcloud::Ptr createVerticesOfASquare(double *x, double *y)
static Pointcloud::Ptr createBlobOfPoints(double *mean, double *stdDev)
Pointcloud::Ptr createStepTerrain(unsigned int nPoints, double minXY, double maxXY, double zHigh, double zLow, double stdDevZ, std::mt19937 *generator, double *center)
Pointcloud::Ptr concatenate(Pointcloud::Ptr cloud1, Pointcloud::Ptr cloud2)
Pointcloud::Ptr createNormallyDistributedBlobOfPoints(unsigned int nPoints, double mean, double stdDev, std::mt19937 *generator)
Pointcloud::Ptr createPerfectPlane(unsigned int nPoints, double minXY, double maxXY, double desiredHeight, std::mt19937 *generator)
pcl::PointCloud< Point > Pointcloud