Commit 0262ec2 1 parent 092c350 commit 0262ec2 Copy full SHA for 0262ec2
File tree 1 file changed +3
-2
lines changed
localization/ndt_scan_matcher/test
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 15
15
#ifndef TEST_UTIL_HPP_
16
16
#define TEST_UTIL_HPP_
17
17
18
+ #include < pcl/point_cloud.h>
18
19
#include < pcl/point_types.h>
19
20
20
21
pcl::PointCloud<pcl::PointXYZ> make_sample_pcd (
@@ -29,8 +30,8 @@ pcl::PointCloud<pcl::PointXYZ> make_sample_pcd(
29
30
cloud.points .resize (cloud.width * cloud.height );
30
31
for (int i = 0 ; i < num_points_per_line; ++i) {
31
32
for (int j = 0 ; j < num_points_per_line; ++j) {
32
- const float x = min_xy + interval * j ;
33
- const float y = min_xy + interval * i ;
33
+ const float x = min_xy + interval * static_cast < float >(j) ;
34
+ const float y = min_xy + interval * static_cast < float >(i) ;
34
35
const float z = std::hypot (x - center, y - center) / (range_width / 16 );
35
36
cloud.points [i * num_points_per_line + j].x = x;
36
37
cloud.points [i * num_points_per_line + j].y = y;
You can’t perform that action at this time.
0 commit comments