From b04c7bb44d07cccfbf83e87d9073a3578044d138 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Mon, 9 May 2022 10:43:02 +0200 Subject: [PATCH] Fix clang-tidy warning (#1208) --- .../collision_detection/src/collision_octomap_filter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/moveit_core/collision_detection/src/collision_octomap_filter.cpp b/moveit_core/collision_detection/src/collision_octomap_filter.cpp index f6e452ce81..5eb4fe7d78 100644 --- a/moveit_core/collision_detection/src/collision_octomap_filter.cpp +++ b/moveit_core/collision_detection/src/collision_octomap_filter.cpp @@ -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;