Skip to content

Commit

Permalink
algo/centroidal: fix missing term for centroidal dynamics derivatives
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Nov 22, 2023
1 parent 7f9be4c commit 856f26e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/pinocchio/algorithm/centroidal.hxx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright (c) 2015-2019 CNRS INRIA
// Copyright (c) 2015-2023 CNRS INRIA
//

#ifndef __pinocchio_algorithm_centroidal_hxx__
Expand Down Expand Up @@ -371,7 +371,9 @@ namespace pinocchio
const Block3x dAg_lin = data.dAg.template middleRows<3>(Force::LINEAR);
Block3x dAg_ang = data.dAg.template middleRows<3>(Force::ANGULAR);
for(Eigen::DenseIndex i = 0; i<model.nv; ++i)
dAg_ang.col(i) += dAg_lin.col(i).cross(data.com[0]);
{
dAg_ang.col(i) += dAg_lin.col(i).cross(data.com[0]) + Ag_lin.col(i).cross(data.vcom[0]);
}

return data.dAg;
}
Expand Down

0 comments on commit 856f26e

Please sign in to comment.