ros-industrial / stomp_ros

ROS packages for the STOMP planner (split out of industrial_moveit)
Apache License 2.0
37 stars 27 forks source link

use EigenStl wherever possible #11

Closed mlautman closed 4 years ago

mlautman commented 4 years ago

https://eigen.tuxfamily.org/dox/group__DenseMatrixManipulation__Alignement.html

Using STL containers on fixed-size vectorizable Eigen types, or classes having members of such types, requires taking the following two steps:

  • A 16-byte-aligned allocator must be used. Eigen does provide one ready for use: aligned_allocator.
  • If you want to use the std::vector container, you need to #include <Eigen/StdVector>.

These issues arise only with fixed-size vectorizable Eigen types and structures having such Eigen objects as member. For other Eigen types, such as Vector3f or MatrixXd, no special care is needed when using STL containers.

mlautman commented 4 years ago

@jrgnicho

jrgnicho commented 4 years ago

@mlautman thanks for the contribution