Skip to content

Commit

Permalink
Test curvatureToPoint when zero curvature
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan4253 committed Dec 30, 2023
1 parent 8b86340 commit 778988e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test/Geometry/PoseTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,11 @@ TEST(PoseTest, curvatureToPoint) {
rz::Translation target(2_m, 4_m);

EXPECT_NEAR(rz::curvatureToPoint(pose, target).convert(radpm), -0.5, EPSILON);
}

TEST(PoseTest, curvatureToPointZero) {
rz::Pose pose(rz::Translation(4_m, 2_m), 0_deg);
rz::Translation target(6_m, 2_m);

EXPECT_NEAR(rz::curvatureToPoint(pose, target).convert(radpm), 0, 0);
}

0 comments on commit 778988e

Please sign in to comment.