Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
  • Loading branch information
maxime-clem committed Aug 9, 2023
1 parent f43c16a commit 71a8fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void updateDrivableAreaBounds(PathWithLaneId & path, const polygon_t & expanded_
end_right.update(*inter_end, it, dist);
}
}
if ( // illformed expanded drivable area -> keep the original bounds
if ( // ill-formed expanded drivable area -> keep the original bounds
start_left.segment_it == da.end() || start_right.segment_it == da.end() ||
end_left.segment_it == da.end() || end_right.segment_it == da.end()) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ TEST(DrivableAreaExpansionProjection, SubLinestring)
for (auto i = 0lu; i < ls.size(); ++i) EXPECT_TRUE(boost::geometry::equals(ls[i], sub[i]));
}
{
// arc lengths equal to existing point: sublinestring with same points
// arc lengths equal to existing point: sub-linestring with same points
const auto sub = sub_linestring(ls, 1.0, 5.0);
ASSERT_EQ(ls.size() - 2lu, sub.size());
for (auto i = 0lu; i < sub.size(); ++i) EXPECT_TRUE(boost::geometry::equals(ls[i + 1], sub[i]));
}
{
// arc lengths inside the original: sublinestring with some interpolated points
// arc lengths inside the original: sub-linestring with some interpolated points
const auto sub = sub_linestring(ls, 1.5, 2.5);
ASSERT_EQ(sub.size(), 3lu);
EXPECT_NEAR(sub[0].x(), 1.5, eps);
Expand Down

0 comments on commit 71a8fd1

Please sign in to comment.