Commit 09b6e817 authored by jcarpent's avatar jcarpent
Browse files

[Algo] Fix alignment issue by using correct allocator

parent 9add2de2
......@@ -36,7 +36,7 @@ namespace se3
const Eigen::VectorXd & q,
const Eigen::VectorXd & v,
const Eigen::VectorXd & a,
const std::vector<Force> & fext)
const container::aligned_vector<Force> & fext)
{
return rnea(model,data,q,v,a,fext);
}
......
......@@ -56,7 +56,7 @@ namespace se3
const Eigen::VectorXd & q,
const Eigen::VectorXd & v,
const Eigen::VectorXd & a,
const std::vector<Force> & fext);
const container::aligned_vector<Force> & fext);
///
/// \brief Computes the non-linear effects (Corriolis, centrifual and gravitationnal effects), also called the biais terms \f$ b(q,\dot{q}) \f$ of the Lagrangian dynamics:
......
......@@ -113,7 +113,7 @@ namespace se3
const Eigen::VectorXd & q,
const Eigen::VectorXd & v,
const Eigen::VectorXd & a,
const std::vector<Force> & fext)
const container::aligned_vector<Force> & fext)
{
assert(fext.size() == model.joints.size());
......
......@@ -146,7 +146,7 @@ BOOST_AUTO_TEST_CASE (test_rnea_with_fext)
VectorXd v (VectorXd::Random(model.nv));
VectorXd a (VectorXd::Random(model.nv));
std::vector<Force> fext(model.joints.size(), Force::Zero());
container::aligned_vector<Force> fext(model.joints.size(), Force::Zero());
JointIndex rf = model.getJointId("rleg6_joint"); Force Frf = Force::Random();
JointIndex lf = model.getJointId("lleg6_joint"); Force Flf = Force::Random();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment