Skip to content

Commit

Permalink
Use DontAlign Eigen matrix for ProjectionEvaluator, fix RVS ompl#29
Browse files Browse the repository at this point in the history
  • Loading branch information
qqfly committed May 6, 2020
1 parent f3680b6 commit 1865cab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ompl/base/src/ProjectionEvaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ ompl::base::ProjectionMatrix::Matrix ompl::base::ProjectionMatrix::ComputeRandom
projection(i, j) = rng.gaussian01();
}

projection = Eigen::JacobiSVD<Eigen::MatrixXd>(projection, Eigen::ComputeThinV).matrixV().transpose();
// projection = Eigen::JacobiSVD<Eigen::MatrixXd>(projection, Eigen::ComputeThinV).matrixV().transpose();
/// @qqfly: use DontAlign Eigen matrix (for RVS).
projection = Eigen::JacobiSVD<Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor | Eigen::DontAlign>>(projection, Eigen::ComputeThinV).matrixV().transpose();

assert(scale.size() == from || scale.size() == 0);
if (scale.size() == from)
Expand Down

0 comments on commit 1865cab

Please sign in to comment.