Skip to content

Commit

Permalink
Fix clang-tidy warning (#1208)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke authored May 9, 2022
1 parent 78574bc commit b04c7bb
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,8 @@ bool sampleCloud(const octomap::point3d_list& cloud, const double& spacing, cons
double a = 0, b = 0, c = 0, r2 = 0, r4 = 0, r6 = 0, a1 = 0, b1 = 0, c1 = 0, a2 = 0, b2 = 0, c2 = 0;
bool wyvill = true;

octomap::point3d_list::const_iterator it;
for (it = cloud.begin(); it != cloud.end(); ++it)
for (const octomath::Vector3& v : cloud)
{
octomath::Vector3 v = (*it);

if (wyvill)
{
r2 = r * r;
Expand Down

0 comments on commit b04c7bb

Please sign in to comment.