slam14讲-ch5问题记录-" **** READ THIS WEB PAGE !!! ****"’ failed
问题描述
Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 32>::plain_array() [with T = double; int Size = 16; int MatrixOrArrayOptions = 0]: Assertion `(internal::UIntPtr(eigen_unaligned_array_assert_workaround_gcc47(array)) & (31)) == 0 && "this assertion is explained here: " "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"' failed.
问题原因
STL Containers or manual memory allocation
具体代码
vector<Eigen::Isometry3d> poses;//camera poses
解决方法
#include<Eigen/StdVector>
vector<Eigen::Isometry3d,Eigen::aligned_allocator<Eigen::Isometry3d>> poses;//camera poses
分配空间