Skip to content

Commit

Permalink
fix(detected_object_validation): modify build error in rolling
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <[email protected]>
  • Loading branch information
wep21 committed Apr 21, 2022
1 parent a96cbd0 commit 9bb287b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
#include <pcl/search/kdtree.h>
#include <pcl/search/pcl_search.h>
#include <pcl_conversions/pcl_conversions.h>

#ifdef USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#endif

#define EIGEN_MPL2_ONLY
#include <Eigen/Core>
Expand Down Expand Up @@ -165,7 +170,7 @@ void ObstaclePointCloudBasedValidator::onObjectsAndObstaclePointCloud(

// Create Kd-tree to search neighbor pointcloud to reduce cost.
pcl::search::Search<pcl::PointXY>::Ptr kdtree =
boost::make_shared<pcl::search::KdTree<pcl::PointXY>>(false);
pcl::make_shared<pcl::search::KdTree<pcl::PointXY>>(false);
kdtree->setInputCloud(obstacle_pointcloud);

for (size_t i = 0; i < transformed_objects.objects.size(); ++i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

#include <boost/optional.hpp>

#ifdef USE_TF2_GEOMETRY_MSGS_DEPRECATED_HEADER
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#endif

#define EIGEN_MPL2_ONLY
#include <Eigen/Core>
Expand Down

0 comments on commit 9bb287b

Please sign in to comment.