1 #include <gtest/gtest.h> 3 #include "../../../src/core/maps/area_occupancy_estimator.h" 27 ,
cell{-1, 1, -1, 1} {}
67 auto beam =
Segment2D{{-0.5, 1.5}, {1.5, -0.5}};
79 auto beam =
Segment2D{{0.9, -2}, {0.9, 2}};
101 auto beam =
Segment2D{{-50, 0}, {0.5, 0}};
107 auto beam =
Segment2D{{-50, 0}, {0.5, 0}};
113 auto beam =
Segment2D{{50, 0}, {0.5, 0}};
119 auto beam =
Segment2D{{50, 0}, {0.5, 0}};
125 auto beam =
Segment2D{{-50, -50}, {0.5, 0.5}};
131 auto beam =
Segment2D{{-50, -50}, {0.5, 0.5}};
137 auto beam =
Segment2D{{50, 50}, {0.5, 0.5}};
313 auto beam =
Segment2D{{-1, -2}, {-1, 2}};
319 auto beam =
Segment2D{{-1, -2}, {-1, 2}};
325 auto beam =
Segment2D{{-1, -2}, {-1, 0}};
332 auto beam =
Segment2D{{-1, -2}, {-1, 0}};
368 auto beam =
Segment2D{{-0.5, -0.5}, {0, 50}};
374 auto beam =
Segment2D{{-0.5, -0.5}, {0, 50}};
379 auto beam =
Segment2D{{-0.5, -0.5}, {1, 1}};
385 auto beam =
Segment2D{{-0.5, -0.5}, {1, 1}};
390 auto beam =
Segment2D{{-0.5, -0.5}, {0, 0}};
395 auto beam =
Segment2D{{-0.5, -0.5}, {0, 0}};
401 auto beam =
Segment2D{{0.5, 0.5}, {0.5, 0.5}};
430 int main (
int argc,
char *argv[]) {
431 ::testing::InitGoogleTest(&argc, argv);
432 return RUN_ALL_TESTS();
static constexpr double Base_Empty_Prob
static constexpr double Low_Est_Qual
AreaOccupancyEstimator aoe
static constexpr double Unknown_Est_Qual
static Occupancy invalid()
TEST_F(AreaOccupancyEstimatorTest, emptyFwdHorizPierces)
int main(int argc, char *argv[])
Occupancy estimate_occupancy(const Segment2D &beam, const Rectangle &cell, bool is_occ) override
AreaOccupancyEstimatorTest()
static constexpr double Base_Occup_Prob