1 #include <gtest/gtest.h> 5 #include "../mock_grid_cell.h" 8 #include "../../../src/core/scan_matchers/occupancy_observation_probability.h" 9 #include "../../../src/core/scan_matchers/bf_multi_res_scan_matcher.h" 10 #include "../../../src/core/maps/plain_grid_map.h" 11 #include "../../../src/core/maps/lazy_tiled_grid_map.h" 12 #include "../../../src/core/maps/rescalable_caching_grid_map.h" 14 template <
typename Map>
24 std::make_shared<SPW>()),
62 auto bnd_pos = CecumMp::BoundPosition::Top;
63 auto cecum_mp = CecumMp{Cecum_Patch_W,
Cecum_Patch_H, bnd_pos};
67 (cecum_mp.width() * Patch_Scale / 2) * this->
map.scale(),
68 (-cecum_mp.height() * Patch_Scale + 1) * this->
map.scale(),
83 template <
typename MapType>
140 auto noise =
RobotPoseDelta{-Translation_Error, Translation_Error,
158 auto noise =
RobotPoseDelta{-Translation_Error, Translation_Error,
174 int main (
int argc,
char *argv[]) {
175 ::testing::InitGoogleTest(&argc, argv);
176 return RUN_ALL_TESTS();
static constexpr auto to_lsp(double max_dist, double fow_deg, unsigned pts_nm)
static constexpr double SM_Transl_Step
static constexpr int LS_FoW
BruteForceMultiResolutionScanMatcher bfmrsm
TYPED_TEST(BFMRScanMatcherSmokeTest, cecumNoPoseNoise)
static constexpr double LS_Max_Dist
static constexpr double SM_Max_Rotation_Error
static constexpr double SM_Max_Translation_Error
int main(int argc, char *argv[])
static constexpr double SM_Ang_Step
static constexpr int Map_Height
typename ScanMatcherTestBase< MapType >::DefaultSPE SPE
static constexpr int LS_Pts_Nm
::testing::Types< UnboundedPlainGridMap, RescalableCachingGridMap< UnboundedPlainGridMap >> MapTs
void test_scan_matcher(const LaserScannerParams &lsp, const RobotPoseDelta &noise, const RobotPoseDelta &acc_error)
static constexpr int Map_Width
virtual void add_primitive_to_map(const TextRasterMapPrimitive &mp, const DiscretePoint2D &offset, int w_scale, int h_scale)
static constexpr double Map_Scale
BFMRScanMatcherTestBase()
TYPED_TEST_CASE(BFMRScanMatcherSmokeTest, MapTs)
std::shared_ptr< ScanProbabilityEstimator > spe
TEST_F(BFMRScanMatcherResclalableMapSpecificTest, hugeWindowLookup)
constexpr double deg2rad(double angle_deg)
static constexpr int Patch_Scale
RobotPoseDelta default_acceptable_error() override
GridScanMatcher & scan_matcher() override
void init_pose_facing_top_cecum_bound()