Skip to content

Commit

Permalink
lanelet length test added.
Browse files Browse the repository at this point in the history
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
  • Loading branch information
HansOersted committed Dec 10, 2024
1 parent 36f5ffb commit bb2f792
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoware_lanelet2_extension/test/src/test_utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ TEST_F(TestSuite, OverwriteLaneletsCenterline) // NOLINT for gtest
}
}

TEST_F(TestSuite, GetLaneletLength) // NOLINT for gtest
{
double length_2d = lanelet::utils::getLaneletLength2d(road_lanelet);
double length_3d = lanelet::utils::getLaneletLength3d(road_lanelet);

EXPECT_GT(length_2d, 0.0);
EXPECT_GT(length_3d, 0.0);
}

/*
TEST(Utilities, copyZ) // NOLINT for gtest
{
Expand Down

0 comments on commit bb2f792

Please sign in to comment.