1 #include <gtest/gtest.h> 5 #include "../mock_grid_cell.h" 8 #include "../../../src/core/scan_matchers/hill_climbing_scan_matcher.h" 9 #include "../../../src/core/scan_matchers/occupancy_observation_probability.h" 10 #include "../../../src/core/maps/plain_grid_map.h" 44 std::make_shared<SPW>()),
45 Map_Width, Map_Height, Map_Scale,
46 to_lsp(LS_Max_Dist, LS_FoW, LS_Pts_Nm)}
53 auto bnd_pos = CecumMp::BoundPosition::Top;
58 (cecum_mp.width() * Patch_Scale / 2) *
map.
scale(),
59 (-cecum_mp.height() * Patch_Scale + 1) *
map.
scale(),
118 int main (
int argc,
char *argv[]) {
119 ::testing::InitGoogleTest(&argc, argv);
120 return RUN_ALL_TESTS();
static constexpr auto to_lsp(double max_dist, double fow_deg, unsigned pts_nm)
static constexpr int Patch_Scale
static constexpr int Map_Height
void init_pose_facing_top_cecum_bound()
static constexpr int LS_Pts_Nm
GridScanMatcher & scan_matcher() override
typename ScanMatcherTestBase< UnboundedPlainGridMap >::DefaultSPE SPE
static constexpr int Map_Width
UnboundedPlainGridMap map
static constexpr double Init_Ang_Step
void test_scan_matcher(const LaserScannerParams &lsp, const RobotPoseDelta &noise, const RobotPoseDelta &acc_error)
static constexpr int Cecum_Patch_H
HillClimbingScanMatcher _hcsm
static constexpr int Cecum_Patch_W
static constexpr int LS_FoW
HillClimbingScanMatcherSmokeTest()
virtual void add_primitive_to_map(const TextRasterMapPrimitive &mp, const DiscretePoint2D &offset, int w_scale, int h_scale)
static constexpr int Max_SM_Shirnks_Nm
static constexpr double Init_Lin_Step
TEST_F(HillClimbingScanMatcherSmokeTest, cecumNoPoseNoise)
static constexpr double LS_Max_Dist
std::shared_ptr< ScanProbabilityEstimator > spe
constexpr double deg2rad(double angle_deg)
int main(int argc, char *argv[])
virtual double scale() const
static constexpr double Map_Scale