1
- /*
2
- * Software License Agreement (BSD License)
3
- *
4
- * Data Registration Framework - Mobile Spatial Assistance System
5
- * Copyright (c) 2014-2016, Institute of Mathematical Machines
6
- * http://lider.zms.imm.org.pl/
7
- *
8
- * All rights reserved.
9
- *
10
- * Redistribution and use in source and binary forms, with or without
11
- * modification, are permitted provided that the following conditions
12
- * are met:
13
- *
14
- * * Redistributions of source code must retain the above copyright
15
- * notice, this list of conditions and the following disclaimer.
16
- * * Redistributions in binary form must reproduce the above
17
- * copyright notice, this list of conditions and the following
18
- * disclaimer in the documentation and/or other materials provided
19
- * with the distribution.
20
- * * Neither the name of Institute of Mathematical Machines nor the names of its
21
- * contributors may be used to endorse or promote products derived
22
- * from this software without specific prior written permission.
23
- *
24
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
27
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
28
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
29
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
30
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
31
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
32
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
34
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35
- * POSSIBILITY OF SUCH DAMAGE.
36
- *
37
- * $Id$
38
- */
39
-
40
1
#include < GL/freeglut.h>
41
2
42
3
// PCL
43
4
#include < pcl/point_types.h>
44
5
#include < pcl/point_cloud.h>
45
- // #include <pcl/point_representation.h>
46
6
#include < pcl/io/pcd_io.h>
47
- // #include <pcl/filters/voxel_grid.h>
48
- // #include <pcl/filters/filter.h>
49
- // #include <pcl/features/normal_3d.h>
50
- // #include <pcl/registration/transforms.h>
51
- // #include <pcl/registration/ndt.h>
52
7
#include < pcl/console/parse.h>
53
- // #include <pcl/registration/icp.h>
54
- // #include <pcl/common/time.h>
55
- // #include <pcl/filters/voxel_grid.h>
56
- // #include <pcl/filters/statistical_outlier_removal.h>
57
- // #include <pcl/PCLPointCloud2.h>
58
8
59
9
#include " cudaWrapper.h"
60
10
#include " point_types.h"
@@ -128,12 +78,12 @@ int main(int argc, char **argv)
128
78
129
79
if (pcl::io::loadPCDFile (" ../../data/scan_Velodyne_VLP16.pcd" , first_point_cloud) == -1 )
130
80
{
131
- return - 1 ;
81
+ return 1 ;
132
82
}
133
83
134
84
if (pcl::io::loadPCDFile (" ../../data/scan_Velodyne_VLP16_2.pcd" , second_point_cloud) == -1 )
135
85
{
136
- return - 1 ;
86
+ return 1 ;
137
87
}
138
88
139
89
}else
@@ -144,17 +94,17 @@ int main(int argc, char **argv)
144
94
if (ind_pcd.size () != 2 )
145
95
{
146
96
std::cout << " did you forget pcd files location? return" << std::endl;
147
- return - 1 ;
97
+ return 1 ;
148
98
}
149
99
150
100
if (pcl::io::loadPCDFile (argv[1 ], first_point_cloud) == -1 )
151
101
{
152
- return - 1 ;
102
+ return 1 ;
153
103
}
154
104
155
105
if (pcl::io::loadPCDFile (argv[2 ], second_point_cloud) == -1 )
156
106
{
157
- return - 1 ;
107
+ return 1 ;
158
108
}
159
109
}
160
110
@@ -182,7 +132,7 @@ int main(int argc, char **argv)
182
132
183
133
if (false == initGL (&argc, argv))
184
134
{
185
- return - 1 ;
135
+ return 1 ;
186
136
}
187
137
188
138
nearest_neighbour_indexes.resize (second_point_cloud.size ());
@@ -195,7 +145,7 @@ int main(int argc, char **argv)
195
145
glutKeyboardFunc (keyboard);
196
146
glutMouseFunc (mouse);
197
147
glutMotionFunc (motion);
198
- glutReshapeFunc (reshape);
148
+ glutReshapeFunc (reshape);
199
149
glutMainLoop ();
200
150
}
201
151
0 commit comments