| 25 | } |
| 26 | |
| 27 | Pointcloud::Ptr PointcloudCreator::createBlobOfPoints(double* mean, double* stdDev) { |
| 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); |
| 31 | |
| 32 | *mean = meanDist(rndGenerator); |
| 33 | *stdDev = sigmaDist(rndGenerator); |
| 34 | |
| 35 | auto cloud = grid_map_pcl_test::createNormallyDistributedBlobOfPoints(nPointsInCloud, *mean, *stdDev, &rndGenerator); |
| 36 | |
| 37 | return cloud; |
| 38 | } |
| 39 | |
| 40 | Pointcloud::Ptr PointcloudCreator::createVerticesOfASquare(double* x, double* y) { |
| 41 | grid_map_pcl_test::Pointcloud::Ptr cloud(new grid_map_pcl_test::Pointcloud()); |
nothing calls this directly
no test coverage detected