Skip to content

Commit b6f67fd

Browse files
lvjonokjcarpent
authored andcommitted
style: apply pre-commit
1 parent 60be614 commit b6f67fd

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

include/pinocchio/bindings/python/spatial/inertia.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace pinocchio
4242
typedef typename Inertia::Matrix4 Matrix4;
4343
typedef typename Inertia::Matrix10 Matrix10;
4444
typedef typename Inertia::Vector10 Vector10;
45-
45+
4646
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1, Options> VectorXs;
4747
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Options> MatrixXs;
4848
typedef MotionTpl<Scalar, Options> Motion;

include/pinocchio/spatial/inertia.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -743,8 +743,8 @@ namespace pinocchio
743743
jacobian(5, 4) = -exp_2alpha * exp_d2;
744744
jacobian(5, 5) = -s13 * exp_2alpha;
745745
jacobian(5, 6) = -s23 * exp_2alpha;
746-
jacobian(5, 7) = - t2 * exp_2alpha;
747-
jacobian(5, 8) = - t1 * exp_2alpha;
746+
jacobian(5, 7) = -t2 * exp_2alpha;
747+
jacobian(5, 8) = -t1 * exp_2alpha;
748748

749749
jacobian(6, 0) =
750750
2 * (s12 * s12 + s13 * s13 + t1 * t1 + t3 * t3 + exp_2d1 + exp_2d3) * exp_2alpha;
@@ -762,8 +762,8 @@ namespace pinocchio
762762
jacobian(7, 9) = -t1 * exp_2alpha;
763763

764764
jacobian(8, 0) = -2 * (s23 * exp_d3 + t2 * t3) * exp_2alpha;
765-
jacobian(8, 3) = - s23 * exp_2alpha * exp_d3;
766-
jacobian(8, 5) = - exp_2alpha * exp_d3;
765+
jacobian(8, 3) = -s23 * exp_2alpha * exp_d3;
766+
jacobian(8, 5) = -exp_2alpha * exp_d3;
767767
jacobian(8, 8) = -t3 * exp_2alpha;
768768
jacobian(8, 9) = -t2 * exp_2alpha;
769769

unittest/python/bindings_inertia.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ def test_dynamic_parameters(self):
9797
self.assertApprox(v[0], I.mass)
9898
self.assertApprox(v[1:4], I.mass * I.lever)
9999

100-
I_o = I.inertia + I.mass * \
101-
pin.skew(I.lever).transpose().dot(pin.skew(I.lever))
100+
I_o = I.inertia + I.mass * pin.skew(I.lever).transpose().dot(pin.skew(I.lever))
102101
I_ov = np.array(
103102
[
104103
[float(v[4]), float(v[5]), float(v[7])],
@@ -131,12 +130,14 @@ def test_log_cholesky(self):
131130
exp_d3 = np.exp(d3)
132131

133132
# Create the matrix U
134-
U = exp_alpha * np.array([
135-
[exp_d1, s12, s13, t1],
136-
[0, exp_d2, s23, t2],
137-
[0, 0, exp_d3, t3],
138-
[0, 0, 0, 1]
139-
])
133+
U = exp_alpha * np.array(
134+
[
135+
[exp_d1, s12, s13, t1],
136+
[0, exp_d2, s23, t2],
137+
[0, 0, exp_d3, t3],
138+
[0, 0, 0, 1],
139+
]
140+
)
140141
pseudo_chol = U @ U.T
141142

142143
inertia = pin.Inertia.FromLogCholeskyParameters(eta)

unittest/spatial.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "pinocchio/spatial/cartesian-axis.hpp"
1515
#include "pinocchio/spatial/spatial-axis.hpp"
1616

17-
1817
#include <boost/test/unit_test.hpp>
1918
#include <boost/utility/binary.hpp>
2019

0 commit comments

Comments
 (0)