Skip to content

Commit

Permalink
Fix 3d_rec_framework compilation error
Browse files Browse the repository at this point in the history
Eigen::aligned_allocator was set unproperly. A const declaration was missing in template type.

See http://eigen.tuxfamily.org/dox/group__TopicStlContainers.html.
  • Loading branch information
claudiofantacci committed Sep 29, 2018
1 parent 362183a commit cb319fb
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ namespace pcl


bool use_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f, std::less<std::pair<std::string, int> >, Eigen::aligned_allocator<std::pair<std::pair<
std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f,
std::less<std::pair<std::string, int> >,
Eigen::aligned_allocator<std::pair<const std::pair<std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, Eigen::Vector3f > centroids_cache_;

std::vector<int> indices_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ namespace pcl
bool use_single_categories_;

bool use_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f, std::less<std::pair<std::string, int> >, Eigen::aligned_allocator<std::pair<std::pair<
std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f,
std::less<std::pair<std::string, int> >,
Eigen::aligned_allocator<std::pair<const std::pair<std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, Eigen::Vector3f> centroids_cache_;

std::vector<int> indices_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ template<template<class > class Distance, typename PointInT, typename FeatureT>
typedef std::pair<std::string, int> mv_pair;
mv_pair pair_model_view = std::make_pair (model.id_, view_id);

std::map<mv_pair, Eigen::Matrix4f, std::less<mv_pair>, Eigen::aligned_allocator<std::pair<mv_pair, Eigen::Matrix4f> > >::iterator it =
poses_cache_.find (pair_model_view);
auto it = poses_cache_.find (pair_model_view);

if (it != poses_cache_.end ())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ template<template<class > class Distance, typename PointInT, typename FeatureT>
typedef std::pair<std::string, int> mv_pair;
mv_pair pair_model_view = std::make_pair (model.id_, view_id);

std::map<mv_pair, Eigen::Matrix4f, std::less<mv_pair>, Eigen::aligned_allocator<std::pair<mv_pair, Eigen::Matrix4f> > >::iterator it =
poses_cache_.find (pair_model_view);
auto it = poses_cache_.find (pair_model_view);

if (it != poses_cache_.end ())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,7 @@ template<template<class > class Distance, typename PointInT, typename FeatureT>
typedef std::pair<std::string, int> mv_pair;
mv_pair pair_model_view = std::make_pair (model.id_, view_id);

std::map<mv_pair, Eigen::Matrix4f, std::less<mv_pair>, Eigen::aligned_allocator<std::pair<mv_pair, Eigen::Matrix4f> > >::iterator it =
poses_cache_.find (pair_model_view);
auto it = poses_cache_.find (pair_model_view);

if (it != poses_cache_.end ())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ namespace pcl
std::vector<int> indices_;

bool use_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f, std::less<std::pair<std::string, int> >, Eigen::aligned_allocator<std::pair<std::pair<
std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, Eigen::Matrix4f,
std::less<std::pair<std::string, int> >,
Eigen::aligned_allocator<std::pair<const std::pair<std::string, int>, Eigen::Matrix4f> > > poses_cache_;
std::map<std::pair<std::string, int>, typename pcl::PointCloud<PointInT>::Ptr> keypoints_cache_;

float threshold_accept_model_hypothesis_;
Expand Down

0 comments on commit cb319fb

Please sign in to comment.