HKUST-Aerial-Robotics / VINS-Fusion

An optimization-based multi-sensor state estimator
GNU General Public License v3.0
3.5k stars 1.38k forks source link

Eigen Unaligned Array Assert error #25

Open neorobo opened 5 years ago

neorobo commented 5 years ago

I've been running VINS-Fusion on a standard intel laptop, but want to try it on a raspberry pi 3 b+ and see what I can do through tuning low feature tracks and low speeds/framerates. I've compiled it on the pi, but when I attempt to run the same configuration as what is on my intel laptop, I get the error described here: https://eigen.tuxfamily.org/dox/group__TopicUnalignedArrayAssert.html

The Eigen version that's installed on the laptop is 3.2.92 and the one on the raspberry pi is 3.3.2. The error seems to be coming from Estimator::processImage. Is this something that needs to be fixed according to the above link? Or is there a recommended version of eigen that I should be using?

shaozu commented 5 years ago

Hi, @neorobo. We use eigen 3.3.3 on TX2, which also has an arm-architecture CPU. BTW, you can try our docker version to see if it can work.

moaljazaery commented 5 years ago

I solved the issue by changing CMakeLists.txt in both (camera_models) and (vins_estimator) folders. Update this line : set(CMAKE_BUILD_TYPE "Release") to: set(CMAKE_CXX_FLAGS "-std=c++11 -O3 -Wall -g -march=native")

Also use CERES_VERSION="1.12.0" and eigen 3.3.3