/////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 56 | |
| 57 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 58 | TEST (PCL, computePointNormal) |
| 59 | { |
| 60 | Eigen::Vector4f plane_parameters; |
| 61 | float curvature; |
| 62 | |
| 63 | PointCloud<PointXYZ> c; |
| 64 | |
| 65 | PointXYZ p11 (706952.31f, 4087.6958f, 0.00000000f), |
| 66 | p21 (707002.31f, 6037.6958f, 0.00000000f), |
| 67 | p31 (706952.31f, 7937.6958f, 0.00000000f); |
| 68 | c.push_back (p11); c.push_back (p21); c.push_back (p31); |
| 69 | |
| 70 | computePointNormal (cloud, plane_parameters, curvature); |
| 71 | // std::cerr << plane_parameters << "\n"; |
| 72 | |
| 73 | c.clear (); |
| 74 | PointXYZ p12 (-439747.72f, -43597.250f, 0.0000000f), |
| 75 | p22 (-439847.72f, -41697.250f, 0.0000000f), |
| 76 | p32 (-439747.72f, -39797.250f, 0.0000000f); |
| 77 | |
| 78 | c.push_back (p12); c.push_back (p22); c.push_back (p32); |
| 79 | |
| 80 | computePointNormal (cloud, plane_parameters, curvature); |
| 81 | // std::cerr << plane_parameters << "\n"; |
| 82 | |
| 83 | c.clear (); |
| 84 | PointXYZ p13 (567011.56f, -7741.8179f, 0.00000000f), |
| 85 | p23 (567361.56f, -5841.8179f, 0.00000000f), |
| 86 | p33 (567011.56f, -3941.8179f, 0.00000000f); |
| 87 | |
| 88 | c.push_back (p13); c.push_back (p23); c.push_back (p33); |
| 89 | |
| 90 | computePointNormal (cloud, plane_parameters, curvature); |
| 91 | // std::cerr << plane_parameters << "\n"; |
| 92 | } |
| 93 | |
| 94 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 95 | TEST (PCL, NormalEstimation) |
nothing calls this directly
no test coverage detected