Skip to content

Commit

Permalink
Fix compilation errors with Eigen 3.3.5 (#452)
Browse files Browse the repository at this point in the history
* Add @jslee02's fix for Eigen 3.3.5 bug.

* Update CHANGELOG.md.
  • Loading branch information
brianhou authored Jul 31, 2018
1 parent 2d6e2e2 commit 0df30e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

* Fixed Eigen memory alignment issues on 32bit Ubuntu: [#368](https://github.com/personalrobotics/aikido/pull/368)
* Defined optional dependencies: [#376](https://github.com/personalrobotics/aikido/pull/376)
* Fixed compilation bug with Eigen 3.3.5: [#452](https://github.com/personalrobotics/aikido/pull/452)

### 0.2.0 (2018-01-09)

Expand Down
6 changes: 5 additions & 1 deletion include/aikido/common/detail/Spline-impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,11 @@ auto SplineProblem<Scalar, Index, _NumCoefficients, _NumOutputs, _NumKnots>::
for (Index ioutput = 0; ioutput < mNumOutputs; ++ioutput)
{
// Solve for the spline coefficients for each output dimension.
Eigen::Matrix<Scalar, DimensionAtCompileTime, 1> solutionVector
//
// TODO: As of Eigen 3.3.5, the output type of SparseQR::solve() is not
// assignable to a fixed size vector, so we use Eigen::Dynamic here instead
// of DimensionAtCompileTime.
Eigen::Matrix<Scalar, Eigen::Dynamic, 1> solutionVector
= solver.solve(mB.col(ioutput));

// Split the coefficients by segment.
Expand Down

0 comments on commit 0df30e1

Please sign in to comment.