Skip to content

Commit

Permalink
Update polynomial_traj.h
Browse files Browse the repository at this point in the history
  • Loading branch information
bigsuperZZZX authored Nov 20, 2024
1 parent 0835f96 commit 628f417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/planner/traj_utils/include/traj_utils/polynomial_traj.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ class PolynomialTraj
/* jerk matrix */
Eigen::MatrixXd mat_jerk(order, order);
mat_jerk.setZero();
for (double i = 3; i < order; i += 1)
for (double j = 3; j < order; j += 1)
for (int i = 3; i < order; i += 1)
for (int j = 3; j < order; j += 1)
{
mat_jerk(i, j) =
i * (i - 1) * (i - 2) * j * (j - 1) * (j - 2) * pow(ts, i + j - 5) / (i + j - 5);
Expand Down Expand Up @@ -333,4 +333,4 @@ class PolynomialTraj
double t);
};

#endif
#endif

0 comments on commit 628f417

Please sign in to comment.