Skip to content

Commit

Permalink
Silence clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
henningkayser committed Jun 6, 2024
1 parent 50977af commit 88c92df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ int collision_detection::refineContactNormals(const World::ObjectConstPtr& objec
octree->begin_leafs_bbx(bbx_min, bbx_max);
octomap::OcTreeBaseImpl<octomap::OcTreeNode, octomap::AbstractOccupancyOcTree>::leaf_bbx_iterator leafs_end =
octree->end_leafs_bbx();
int count = 0;
// int count = 0;
for (; it != leafs_end; ++it)
{
const octomap::point3d pt = it.getCoordinate();
// double prob = it->getOccupancy();
if (octree->isNodeOccupied(*it)) // magic number!
{
count++;
node_centers.push_back(pt);
// count++;
// double prob = it->getOccupancy();
// RCLCPP_INFO(getLogger(), "Adding point %d with prob %.3f at [%.3f, %.3f, %.3f]",
// count, prob, pt.x(), pt.y(), pt.z());
}
Expand Down
3 changes: 3 additions & 0 deletions moveit_py/src/moveit/moveit_core/robot_state/robot_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@

#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#include <pybind11/eigen.h>
#pragma GCC diagnostic pop
#include <moveit_py/moveit_py_utils/copy_ros_msg.h>
#include <tf2_eigen/tf2_eigen.hpp>
#include <moveit/robot_state/robot_state.h>
Expand Down

0 comments on commit 88c92df

Please sign in to comment.