Skip to content

Commit 34036b6

Browse files
committed
Removed unused elements
1 parent dd8d984 commit 34036b6

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

  • cyclo_motion_controller_core/include/cyclo_motion_controller_core/common

cyclo_motion_controller_core/include/cyclo_motion_controller_core/common/type_define.hpp

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include <Eigen/Dense>
2020
#include <unsupported/Eigen/MatrixFunctions>
2121

22-
#include <algorithm>
22+
#include <cassert>
2323

2424
namespace cyclo_motion_controller
2525
{
@@ -135,23 +135,6 @@ static double cubicDot(
135135
return x_t;
136136
}
137137

138-
/**
139-
* @brief Construct a 3x3 skew-symmetric matrix from a 3D vector.
140-
*/
141-
static Eigen::Matrix3d skew(Eigen::Vector3d src)
142-
{
143-
Eigen::Matrix3d skew;
144-
skew.setZero();
145-
skew(0, 1) = -src[2];
146-
skew(0, 2) = src[1];
147-
skew(1, 0) = src[2];
148-
skew(1, 2) = -src[0];
149-
skew(2, 0) = -src[1];
150-
skew(2, 1) = src[0];
151-
152-
return skew;
153-
}
154-
155138
template<int N>
156139
/**
157140
* @brief Element-wise cubic interpolation for fixed-size vectors.
@@ -267,14 +250,11 @@ static const Eigen::Vector3d rotationCubicDot(
267250
{
268251
Eigen::Matrix3d r_skew;
269252
r_skew = (rotation_0.transpose() * rotation_f).log();
270-
Eigen::Vector3d a, b, c, r;
253+
Eigen::Vector3d r;
271254
double tau = (time - time_0) / (time_f - time_0);
272255
r(0) = r_skew(2, 1);
273256
r(1) = r_skew(0, 2);
274257
r(2) = r_skew(1, 0);
275-
c = w_0;
276-
b = a_0 / 2;
277-
a = r - b - c;
278258
Eigen::Vector3d rd;
279259
for (int i = 0; i < 3; i++) {
280260
rd(i) = cubicDot(time, time_0, time_f, 0, r(i), 0, 0);

0 commit comments

Comments
 (0)