#include <gtest/gtest.h>
#include <pcl/io/pcd_io.h>
#include "boost.h"
#include <pcl/sample_consensus/sac.h>
#include <pcl/sample_consensus/lmeds.h>
#include <pcl/sample_consensus/ransac.h>
#include <pcl/sample_consensus/rransac.h>
#include <pcl/sample_consensus/msac.h>
#include <pcl/sample_consensus/rmsac.h>
#include <pcl/sample_consensus/mlesac.h>
#include <pcl/sample_consensus/sac_model.h>
#include <pcl/sample_consensus/sac_model_plane.h>
#include <pcl/sample_consensus/sac_model_sphere.h>
#include <pcl/sample_consensus/sac_model_cone.h>
#include <pcl/sample_consensus/sac_model_cylinder.h>
#include <pcl/sample_consensus/sac_model_circle.h>
#include <pcl/sample_consensus/sac_model_circle3d.h>
#include <pcl/sample_consensus/sac_model_line.h>
#include <pcl/sample_consensus/sac_model_normal_plane.h>
#include <pcl/sample_consensus/sac_model_normal_sphere.h>
#include <pcl/sample_consensus/sac_model_parallel_plane.h>
#include <pcl/sample_consensus/sac_model_normal_parallel_plane.h>
#include <pcl/features/normal_3d.h>
Go to the source code of this file.
Definition at line 72 of file test_sample_consensus.cpp.
Definition at line 73 of file test_sample_consensus.cpp.
typedef SampleConsensusModelCone<PointXYZ, Normal>::Ptr SampleConsensusModelConePtr |
Definition at line 71 of file test_sample_consensus.cpp.
Definition at line 70 of file test_sample_consensus.cpp.
typedef SampleConsensusModelLine<PointXYZ>::Ptr SampleConsensusModelLinePtr |
Definition at line 74 of file test_sample_consensus.cpp.
typedef SampleConsensusModelNormalParallelPlane<PointXYZ, Normal>::Ptr SampleConsensusModelNormalParallelPlanePtr |
Definition at line 78 of file test_sample_consensus.cpp.
Definition at line 75 of file test_sample_consensus.cpp.
Definition at line 76 of file test_sample_consensus.cpp.
Definition at line 77 of file test_sample_consensus.cpp.
typedef SampleConsensusModelPlane<PointXYZ>::Ptr SampleConsensusModelPlanePtr |
Definition at line 68 of file test_sample_consensus.cpp.
typedef SampleConsensusModel<PointXYZ>::Ptr SampleConsensusModelPtr |
Definition at line 67 of file test_sample_consensus.cpp.
typedef SampleConsensusModelSphere<PointXYZ>::Ptr SampleConsensusModelSpherePtr |
Definition at line 69 of file test_sample_consensus.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 942 of file test_sample_consensus.cpp.
TEST | ( | SampleConsensusModelPlane | , |
Base | |||
) |
Definition at line 137 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
Base | |||
) |
Definition at line 161 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelPlane | |||
) |
Definition at line 182 of file test_sample_consensus.cpp.
TEST | ( | LMedS | , |
SampleConsensusModelPlane | |||
) |
Definition at line 195 of file test_sample_consensus.cpp.
TEST | ( | MSAC | , |
SampleConsensusModelPlane | |||
) |
Definition at line 208 of file test_sample_consensus.cpp.
TEST | ( | RRANSAC | , |
SampleConsensusModelPlane | |||
) |
Definition at line 221 of file test_sample_consensus.cpp.
TEST | ( | RMSAC | , |
SampleConsensusModelPlane | |||
) |
Definition at line 237 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelNormalParallelPlane | |||
) |
Definition at line 253 of file test_sample_consensus.cpp.
TEST | ( | MLESAC | , |
SampleConsensusModelPlane | |||
) |
Definition at line 318 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelSphere | |||
) |
Definition at line 331 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelNormalSphere | |||
) |
Definition at line 383 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelCone | |||
) |
Definition at line 482 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelCylinder | |||
) |
Definition at line 589 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelCircle2D | |||
) |
Definition at line 673 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelCircle3D | |||
) |
Definition at line 734 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelLine | |||
) |
Definition at line 805 of file test_sample_consensus.cpp.
TEST | ( | RANSAC | , |
SampleConsensusModelNormalPlane | |||
) |
Definition at line 872 of file test_sample_consensus.cpp.
TEST | ( | SAC | , |
InfiniteLoop | |||
) |
Definition at line 887 of file test_sample_consensus.cpp.
void verifyPlaneSac | ( | ModelType & | model, |
SacType & | sac, | ||
unsigned int | inlier_number = 2000 , |
||
float | tol = 1e-1f , |
||
float | refined_tol = 1e-1f , |
||
float | proj_tol = 1e-3f |
||
) |
Definition at line 88 of file test_sample_consensus.cpp.
PointCloud<PointXYZ>::Ptr cloud_(new PointCloud< PointXYZ >()) |
vector<int> indices_ |
Definition at line 82 of file test_sample_consensus.cpp.
PointCloud<Normal>::Ptr normals_(new PointCloud< Normal >()) |
float plane_coeffs_[] = {-0.8964f, -0.5868f, -1.208f} |
Definition at line 83 of file test_sample_consensus.cpp.