Ask Your Question

Eigen package error while running tod_detecting

asked 2011-05-20 14:33:09 -0500

dlmypr gravatar image

updated 2011-05-20 14:58:26 -0500

When I run tod_detecting I get the following error;

recognizer: /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Core/DenseStorage.h:71: Eigen::internal::plain_array<t, size,="" matrixorarrayoptions,="" 16&gt;::plain_array()="" [with="" t="float," int="" size="4," int="" matrixorarrayoptions="0]:" assertion="" `(reinterpret_cast<size_t="">(array) & 0xf) == 0 && "this assertion is explained here: " "" " * READ THIS WEB PAGE !!! *"' failed.

When I get a backtrace I see the problem is coming from the point_cloud.h inside the pcl package.

#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb524c941 in raise () from /lib/
#2  0xb524fe42 in abort () from /lib/
#3  0xb52458e8 in __assert_fail () from /lib/
#4  0xb7f6703d in plain_array (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Core/DenseStorage.h:71
#5  DenseStorage (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Core/DenseStorage.h:104
#6  PlainObjectBase (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Core/PlainObjectBase.h:354
#7  Matrix (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Core/Matrix.h:272
#8  Quaternion (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Geometry/Quaternion.h:252
#9  Identity (this=0x8148de8) at /opt/ros/diamondback/stacks/geometry/eigen/include/Eigen/src/Geometry/Quaternion.h:109
#10 PointCloud (this=0x8148de8) at /opt/ros/diamondback/stacks/perception_pcl/pcl/include/pcl/point_cloud.h:84
#11 tod::TexturedObject::TexturedObject (this=0x8148de8) at /host/Desktop/Thesis/ros/repository/object_recognition/tod/src/core/TexturedObject.cpp:18
#12 0xb5551ca0 in tod::Loader::readTexturedObjects(std::vector<cv::Ptr<tod::TexturedObject>, std::allocator<cv::Ptr<tod::TexturedObject> > >&) ()
   from /host/ros/repository/object_recognition/tod_detecting/lib/
#13 0x0805f7cf in ?? ()
#14 0xb5238ce7 in __libc_start_main () from /lib/
#15 0x0805d001 in ?? ()

I visited the web page but i didn't understand what is causing this error.

Does anyone know how to cope with it?

Best regards..

edit retag flag offensive close delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-05-21 09:48:27 -0500

dlmypr gravatar image

I defined both EIGEN_DONT_VECTORIZE and EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT inside the recognizer.cpp and the problem is solved

edit flag offensive delete publish link more

answered 2011-05-20 15:55:41 -0500

The answer to this has very much to do with what exactly you're doing. If you're running a tod_detecting launch file that doesn't run any of your code, then it's almost certainly a bug in tod_detecting.

If you are using tod_detecting inside your own code, you could very well be violating the preconditions for using Eigen types with/inside your classes and functions.

In either case, more information about what you are doing and/or what you don't understand about Eigen is needed to help you.

edit flag offensive delete publish link more


I actually run tod_detecting launch file so I am not sure what causes this eigen assertion. But I know program tries to reach this function PointCloud () : width (0), height (0), is_dense (true), sensor_origin_ (Eigen::Vector4f::Zero ()), sensor_orientation_ (Eigen::Quaternionf::Identity ()) and (Eigen::Vector4f::Zero ()) is what causes the problem. In the end of the link it says "define both EIGEN_DONT_VECTORIZE and EIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT. This keeps the 128-bit alignment code and thus preserves ABI compatibility, but completely disables vectorization." for getting rid of this assertion error. But I don't get where should I define these??? dlmypr ( 2011-05-21 08:50:32 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]


Asked: 2011-05-20 14:33:09 -0500

Seen: 441 times

Last updated: May 21 '11