Go to the documentation of this file.
19 #ifndef SLAM_TOOLBOX_SLAM_TOOLBOX_LIFELONG_TEST_H_
20 #define SLAM_TOOLBOX_SLAM_TOOLBOX_LIFELONG_TEST_H_
22 #include <gtest/gtest.h>
25 using namespace karto;
35 TEST(LifelingMetricsTests, TestBounds)
54 double x_l, x_u, y_l, y_u;
67 TEST(LifelingMetricsTests, TestIntersect)
90 EXPECT_EQ(intersect, 6.0);
95 TEST(LifelingMetricsTests, TestIntersectOverUnion)
118 EXPECT_EQ(intersect_over_union, 0.4);
123 TEST(LifelingMetricsTests, TestAreaOverlap)
146 EXPECT_NEAR(area, 0.6666, 0.01);
151 TEST(LifelingMetricsTests, TestPtOverlap)
174 EXPECT_EQ(area, 0.5);
181 int main(
int argc,
char** argv)
183 testing::InitGoogleTest(&argc, argv);
184 return RUN_ALL_TESTS();
187 #endif //SLAM_TOOLBOX_SLAM_TOOLBOX_LIFELONG_TEST_H_
void SetMinimum(const Vector2< kt_double > &mMinimum)
TEST(ActionClientDestruction, persistent_goal_handles_1)
void SetPointReadings(PointVectorDouble &points, kt_bool setFiltered=false)
void SetIsDirty(kt_bool &rIsDirty)
void SetBoundingBox(BoundingBox2 &bbox)
void SetBarycenterPose(Pose2 &bcenter)
void SetMaximum(const Vector2< kt_double > &rMaximum)
std::vector< Vector2< kt_double > > PointVectorDouble
int main(int argc, char **argv)
slam_toolbox
Author(s): Steve Macenski
autogenerated on Thu Jan 11 2024 03:37:55