Skip to content

Commit

Permalink
Add unit test for projected RPP carrot at end of path
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Aug 31, 2023
1 parent 2109777 commit f930b20
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,11 @@ TEST(RegulatedPurePursuitTest, lookaheadAPI)
dist = 3.8;
pt = ctrl->getLookAheadPointWrapper(dist, path);
EXPECT_EQ(pt.pose.position.x, 3.8);

// test carrot projected off end of path with interpolation
dist = 100.0;
pt = ctrl->getLookAheadPointWrapper(dist, path);
EXPECT_EQ(pt.pose.position.x, 100.0);
}

TEST(RegulatedPurePursuitTest, rotateTests)
Expand Down

0 comments on commit f930b20

Please sign in to comment.