Skip to content

Commit

Permalink
Fix linting.
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
  • Loading branch information
bperseghetti committed May 14, 2024
1 parent b83a371 commit 9531fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/gz/math/MassMatrix3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,8 @@ namespace gz
// Diagonal matrix L with principal moments
T radius2 = std::pow(_radius, 2);
Matrix3<T> L;
L(0, 0) = 3.0 * this->mass * (4.0 * radius2 + std::pow(_length, 2)) / 80.0;
L(0, 0) = 3.0 * this->mass * (4.0 * radius2 +
std::pow(_length, 2)) / 80.0;
L(1, 1) = L(0, 0);
L(2, 2) = 3.0 * this->mass * radius2 / 10.0;
Matrix3<T> R(_rot);
Expand Down
3 changes: 2 additions & 1 deletion src/MassMatrix3_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,8 @@ TEST(MassMatrix3dTest, SetFromConeZ)
math::MassMatrix3d m;
EXPECT_TRUE(m.SetFromConeZ(mass, length, radius, q0));

double ixx = (3.0 / 80.0) * mass * (4.0 * std::pow(radius, 2) + std::pow(length, 2));
double ixx = (3.0 / 80.0) * mass * (4.0 * std::pow(radius, 2) +
std::pow(length, 2));
double iyy = ixx;
double izz = (3.0 / 10.0) * mass * std::pow(radius, 2);
const math::Vector3d ixxyyzz(ixx, iyy, izz);
Expand Down

0 comments on commit 9531fef

Please sign in to comment.