Go to the documentation of this file.00001 #include <ndt_map/ndt_map.h>
00002 #include <ndt_map/lazy_grid.h>
00003 #include <pointcloud_vrml/pointcloud_utils.h>
00004 
00005 #include "pcl/point_cloud.h"
00006 #include "pcl/io/pcd_io.h"
00007 #include "pcl/features/feature.h"
00008 #include <cstdio>
00009 #include <cstring>
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #include <Eigen/Eigen>
00020 
00021 using namespace std;
00022 
00023 int main (int argc, char** argv)
00024 {
00025     if(argc < 2)
00026     {
00027         cout << "[ USAGE ] jffSaveTest cloud\n";
00028         exit(1);
00029     }
00030 
00031     cout << "Started saveTest.\n";
00032 
00033     pcl::PointCloud<pcl::PointXYZ> cloud;
00034     char fname[] = "test_wrl.wrl";
00035 
00036     
00037 
00038     lslgeneric::NDTMap<pcl::PointXYZ> nd(new lslgeneric::LazyGrid<pcl::PointXYZ>(0.2));
00039 
00040     nd.loadPointCloud(cloud);
00041     nd.computeNDTCells();
00042 
00043     
00044 
00045     if (nd.writeToJFF("LazyGrid.jff") < 0)
00046         cout << "writing to jff failed\n";
00047 
00048     cout << "Finished saveTest.\n";
00049 
00050     return 0;
00051 }
00052