From 9281ae2bf6c69d8da477ca8b196980914a555132 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:57:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/RBDyn/ZMP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RBDyn/ZMP.cpp b/src/RBDyn/ZMP.cpp index 9455c4fd..7d49e55a 100644 --- a/src/RBDyn/ZMP.cpp +++ b/src/RBDyn/ZMP.cpp @@ -49,7 +49,7 @@ Eigen::Vector3d computeCentroidalZMPComplete(MultiBodyConfig & mbc, denom = mass * g - wr_external.force()(2); zmp(0) = com(0) - ((com(2) - altitude) * comA(0) * (mass * g / denom)) / (comA(2)) + wr_external.couple()(1) / denom + com(2) * wr_external.force()(0) / denom; - zmp(1) = com(1) - ((com(2) - altitude) * comA(1) * (mass * g / denom)) / (comA(2)) - wr_external.couple()(0) / denom + zmp(1) = com(1) - ((com(2) - altitude) * comA(1) * (mass * g / denom)) / (comA(2))-wr_external.couple()(0) / denom + com(2) * wr_external.force()(1) / denom; zmp(2) = altitude; return zmp;