/////////////////////////////////////////////////////////////////////////////////////////////////////////////
| 59 | |
| 60 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 61 | TEST(PCL, GASDTransformEstimation) |
| 62 | { |
| 63 | pcl::GASDEstimation<pcl::PointXYZ, pcl::GASDSignature512> gasd; |
| 64 | gasd.setInputCloud (cloud); |
| 65 | |
| 66 | pcl::PointCloud<pcl::GASDSignature512> descriptor; |
| 67 | gasd.compute (descriptor); |
| 68 | |
| 69 | Eigen::Matrix4f trans = gasd.getTransform (); |
| 70 | |
| 71 | Eigen::Matrix4f ref_trans; |
| 72 | ref_trans << 0.661875, -0.704840, 0.255192, 0.0846344, |
| 73 | -0.748769, -0.605475, 0.269713, 0.0330151, |
| 74 | -0.035592, -0.369596, -0.928511, 0.0622551, |
| 75 | 0, 0, 0, 1; |
| 76 | |
| 77 | for (Eigen::Index i = 0; i < trans.rows(); ++i) |
| 78 | { |
| 79 | for (Eigen::Index j = 0; j < trans.cols (); ++j) |
| 80 | { |
| 81 | EXPECT_NEAR (trans (i, j), ref_trans (i, j), 1e-5); |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////// |
| 87 | TEST (PCL, GASDShapeEstimationNoInterp) |
nothing calls this directly
no test coverage detected