19 #include "leica_scanstation_utils/LeicaUtils.h" 20 #include <gtest/gtest.h> 24 TEST(TestCADToPointCloud, testPLY)
27 std::string file_name = cad_folder_path +
"/test/cube.ply";
29 int sample_points = 10000;
37 ASSERT_GT(cubeRGB->size(),1);
41 TEST(TestCADToPointCloud, testOBJ)
44 std::string file_name = cad_folder_path +
"/test/cube.ply";
46 int sample_points = 10000;
54 ASSERT_GT(cubeRGB->size(),1);
58 int main(
int argc,
char **argv){
59 testing::InitGoogleTest(&argc, argv);
61 return RUN_ALL_TESTS();
pcl::PointCloud< pcl::PointXYZRGB > PointCloudRGB
TEST(TestCADToPointCloud, testPLY)
static bool isValidCloud(PointCloudXYZ::Ptr cloud)
Check whether cloud contains data and is not empty.
int main(int argc, char **argv)
This class is used to obtain pcl::PointCloud from CAD file. Supported formats: .OBJ.
ROSLIB_DECL std::string getPath(const std::string &package_name)
void convertCloud(PointCloudRGB::Ptr cloud)
convert cloud defined by path in construstor into cloud