MCPcopy Create free account
hub / github.com/ANYbotics/grid_map / createBlobOfPoints

Method createBlobOfPoints

grid_map_pcl/test/PointcloudCreator.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27Pointcloud::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
40Pointcloud::Ptr PointcloudCreator::createVerticesOfASquare(double* x, double* y) {
41 grid_map_pcl_test::Pointcloud::Ptr cloud(new grid_map_pcl_test::Pointcloud());

Callers

nothing calls this directly

Tested by

no test coverage detected