Skip to content

Commit 248eeff

Browse files
committed
Fix build against older mrpt
1 parent eae267a commit 248eeff

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/test-mp2p_FilterDecimateVoxels.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <mrpt/maps/CPointsMapXYZI.h>
2424
#include <mrpt/math/ops_containers.h>
2525
#include <mrpt/system/filesystem.h>
26+
#include <mrpt/version.h>
2627

2728
using namespace mp2p_icp_filters;
2829
using namespace mp2p_icp;
@@ -42,8 +43,12 @@ mrpt::maps::CPointsMap::Ptr createTestPoints(size_t n_x, size_t n_y)
4243
float intensity = static_cast<float>(i * n_y + j);
4344

4445
pc->insertPointFast(x, y, z);
46+
#if MRPT_VERSION >= 0x020f00
4547
pc->insertPointField_float(
4648
mrpt::maps::CPointsMapXYZI::POINT_FIELD_INTENSITY, intensity);
49+
#else
50+
pc->insertPointField_Intensity(intensity);
51+
#endif
4752
}
4853
}
4954
return pc;

0 commit comments

Comments
 (0)