Skip to content

Commit

Permalink
Fix clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 13, 2024
1 parent 835cac3 commit 6166516
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions moveit_core/robot_state/src/cartesian_interpolator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ CartesianInterpolator::Percentage CartesianInterpolator::computeCartesianPath(
traj.insert(traj.end(), start, waypoint_traj.end());

if (fabs(wp_percentage_solved - 1.0) < std::numeric_limits<double>::epsilon())
{
percentage_solved = static_cast<double>(i + 1) / static_cast<double>(waypoints.size());
}
else
{
percentage_solved += wp_percentage_solved / static_cast<double>(waypoints.size());
Expand Down Expand Up @@ -494,7 +496,9 @@ CartesianInterpolator::Percentage CartesianInterpolator::computeCartesianPath(
path.insert(path.end(), start, waypoint_path.end());

if (fabs(wp_percentage_solved - 1.0) < std::numeric_limits<double>::epsilon())
{
percentage_solved = static_cast<double>((i + 1)) / static_cast<double>(waypoints.size());
}
else
{
percentage_solved += wp_percentage_solved / static_cast<double>(waypoints.size());
Expand Down

0 comments on commit 6166516

Please sign in to comment.