Skip to content

Commit

Permalink
Merge pull request #90 from ge25bec/fix/spiral-edge-case-misinterpret…
Browse files Browse the repository at this point in the history
…ation

added std prefix to abs function calls in OpenDriveMap.cpp
  • Loading branch information
pageldev authored Nov 24, 2023
2 parents 9f272c8 + 8e477b7 commit 822edeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenDriveMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ OpenDriveMap::OpenDriveMap(const std::string& xodr_file,
}
else
{
if (abs(curv_start) < 1e-6 && abs(curv_end) < 1e-6)
if (std::abs(curv_start) < 1e-6 && std::abs(curv_end) < 1e-6)
{
// In effect a line
road.ref_line.s0_to_geometry[s0] = std::make_unique<Line>(s0, x0, y0, hdg0, length);
}
else if (abs(curv_end - curv_start) < 1e-6)
else if (std::abs(curv_end - curv_start) < 1e-6)
{
// In effect an arc
road.ref_line.s0_to_geometry[s0] = std::make_unique<Arc>(s0, x0, y0, hdg0, length, curv_start);
Expand Down

0 comments on commit 822edeb

Please sign in to comment.