11 #include <gtest/gtest.h> 19 namespace grid_map_pcl_test {
21 TEST(HelpersTest, MeanPositionTest) {
23 const auto seed = rand();
26 const unsigned int numTests = 10;
27 for (
unsigned int i = 0; i < numTests; ++i) {
32 EXPECT_NEAR(meanOfAllPoints.x(), mean, 3 * stdDev);
33 EXPECT_NEAR(meanOfAllPoints.y(), mean, 3 * stdDev);
34 EXPECT_NEAR(meanOfAllPoints.z(), mean, 3 * stdDev);
37 if (::testing::Test::HasFailure()) {
38 std::cout <<
"\n Test MeanPositionTest failed with seed: " << seed << std::endl;
Eigen::Vector3d calculateMeanOfPointPositions(Pointcloud::ConstPtr inputCloud)
TEST(GridMapPclLoaderTest, FlatGroundRealDataset)
void setVerbosityLevel(ros::console::levels::Level level)
std::mt19937 rndGenerator
static Pointcloud::Ptr createBlobOfPoints(double *mean, double *stdDev)