Skip to content

Commit

Permalink
fix: update data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjonok committed Nov 25, 2024
1 parent 569347b commit 2306714
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions include/pinocchio/algorithm/regressor.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ namespace pinocchio
}
}

data.HRegressor = Hregressor;
data.YCTvRegressor = CTregressor;

return std::make_pair(Hregressor, CTregressor);
}

Expand Down
8 changes: 4 additions & 4 deletions include/pinocchio/multibody/data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,11 +505,11 @@ namespace pinocchio
/// \brief Matrix related to potential energy regressor
RowVectorXs potentialEnergyRegressor;

/// \brief Matrix related to momentum regressor
MatrixXs momentumRegressor;
/// \brief Matrix related to YCTv regressor
MatrixXs YCTvRegressor;

/// \brief Matrix related to partial Lagrangian with respect to the joint configuration
MatrixXs dpartial_lagrangian_q;
/// \brief Matrix related to momentum regressor
MatrixXs HRegressor;

PINOCCHIO_ALIGNED_STD_VECTOR(Matrix6x) KA;
PINOCCHIO_ALIGNED_STD_VECTOR(MatrixXs) LA;
Expand Down
4 changes: 2 additions & 2 deletions include/pinocchio/multibody/data.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ namespace pinocchio
, jointTorqueRegressor(MatrixXs::Zero(model.nv, 10 * (model.njoints - 1)))
, kineticEnergyRegressor(RowVectorXs::Zero(10 * (model.njoints - 1)))
, potentialEnergyRegressor(RowVectorXs::Zero(10 * (model.njoints - 1)))
, momentumRegressor(MatrixXs::Zero(model.nv, 10 * (model.njoints - 1)))
, dpartial_lagrangian_q(MatrixXs::Zero(model.nv, 10 * (model.njoints - 1)))
, YCTvRegressor(MatrixXs::Zero(model.nv, 10 * (model.njoints - 1)))
, HRegressor(MatrixXs::Zero(model.nv, 10 * (model.njoints - 1)))
, KA((std::size_t)model.njoints, Matrix6x::Zero(6, 0))
, LA((std::size_t)model.njoints, MatrixXs::Zero(0, 0))
, lA((std::size_t)model.njoints, VectorXs::Zero(0))
Expand Down

0 comments on commit 2306714

Please sign in to comment.