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 dac7638 commit 97528ce
Show file tree
Hide file tree
Showing 3 changed files with 9 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
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,10 @@ bool IKFastKinematicsPlugin::getPositionFK(const std::vector<std::string>& link_
return false;
}

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wno-vla-extension"
IkReal angles[num_joints_];
#pragma clang diagnostic pop
for (unsigned char i = 0; i < num_joints_; ++i)
angles[i] = joint_angles[i];

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 97528ce

Please sign in to comment.