1.类型转换错误
error: no match for ‘operator=’ (operand types are ‘Eigen::internal::enable_if<true, Eigen::IndexedView<Eigen::Matrix<double, -1, -1>, double, double> >::type {aka Eigen::IndexedView<Eigen::Matrix<double, -1, -1>, double, double>}’ and ‘double’)
问题:就是eigen元素类型不能自动转换,导致变量类型不匹配。
解决:把i,j 类型改为int型,编译通过,但是不知道后续是否会因此导致加加速度精度受到影响(int了)
还有一种方法据说是换eigen3.3,没试过
https://github.com/HKUST-Aerial-Robotics/Fast-Planner/issues/92