UnalignedArrayAssert in SimpleLocalizer
Bug #669407 reported by
Sander van Dijk
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
littlegreenbats |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While running libbats-2.0 sample helloworldagent, I always get eigen assertion that says:
path/to/
Eigen::
[with T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]:
Assertion `(reinterpret_
is explained here: http://
READ THIS WEB PAGE !!! ****"' failed.
The agent flashes in simspark monitor for a while and then gets vanished.
Changed in littlegreenbats: | |
status: | New → Fix Released |
To post a comment you must log in.
This is due to the SimpleLocalizer using Eigen members wrongly. It can be solved by adding the following line in the public section of Localizer/ SimpleLocalizer /simplelocalize r.hh (for instance at line 101):
EIGEN_ MAKE_ALIGNED_ OPERATOR_ NEW
However, it is probably better to use the KalmanLocalizer instead of SimpleLocalizer instead, because the SimpleLocalizer actually doesn't do much useful. For this, change:
SLocalizer: :initialize< SimpleLocalizer >();
To
SLocalizer: :initialize< KalmanLocalizer >();
in examples/ helloworld/ HelloWorldAgent /init.cc. This is changed in the bzr repository, and fixed in the next version. Also see attached patch.