Add patch for Eigen build error
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 10 Oct 2015 06:50:21 +0000 (08:50 +0200)
committerJochen Sprickerhof <git@jochen.sprickerhof.de>
Sat, 10 Oct 2015 07:35:09 +0000 (09:35 +0200)
debian/patches/0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch b/debian/patches/0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch
new file mode 100644 (file)
index 0000000..34e5239
--- /dev/null
@@ -0,0 +1,21 @@
+From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
+Date: Sat, 10 Oct 2015 08:47:01 +0200
+Subject: Fix THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS
+
+---
+ registration/include/pcl/registration/impl/ppf_registration.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/registration/include/pcl/registration/impl/ppf_registration.hpp b/registration/include/pcl/registration/impl/ppf_registration.hpp
+index fc752a4..2203862 100644
+--- a/registration/include/pcl/registration/impl/ppf_registration.hpp
++++ b/registration/include/pcl/registration/impl/ppf_registration.hpp
+@@ -317,7 +317,7 @@ pcl::PPFRegistration<PointSource, PointTarget>::posesWithinErrorBounds (Eigen::A
+                                                                         Eigen::Affine3f &pose2)
+ {
+   float position_diff = (pose1.translation () - pose2.translation ()).norm ();
+-  Eigen::AngleAxisf rotation_diff_mat (pose1.rotation ().inverse () * pose2.rotation ());
++  Eigen::AngleAxisf rotation_diff_mat (pose1.rotation ().inverse ().lazyProduct (pose2.rotation ()));
+   float rotation_diff_angle = fabsf (rotation_diff_mat.angle ());
index 2a57aa745a4d8240f19dffdf14243427a439c523..ccc1c73a9ef07040790e21bada81818ec120c9b3 100644 (file)
@@ -7,3 +7,4 @@
 0007-Fix-for-boost-1.57.patch
 0008-Fixes-manual_registration-and-segmentation-demo-for-.patch
 0009-Fix-THIS_METHOD_IS_ONLY_FOR_1x1_EXPRESSIONS.patch
+0010-Fix-THIS_METHOD_IS_ONLY_FOR_INNER_OR_LAZY_PRODUCTS.patch