You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this how you would find the jerk at time t for a piece of a trajectory?
// Get the jerk at time t in this pieceinline Eigen::Vector3d getJerk(double t)
{
// Normalize the time
t /= duration;
Eigen::Vector3d jerk(0.0, 0.0, 0.0);
double tn = 1.0;
int l = 1;
int m = 2;
int n = 3;
for (int i = TrajOrder - 3; i >= 0; i--)
{
jerk += l * m * n * tn * normalizedCoeffMat().col(i);
tn *= t;
l++;
m++;
n++;
}
// Recover the actual jerk
jerk /= (duration * duration * duration);
return jerk;
}
This is for min snap but it could be applied to min jerk too. If this seems correct to you I'll happily send a pull request.
The text was updated successfully, but these errors were encountered:
Is this how you would find the jerk at time t for a piece of a trajectory?
This is for min snap but it could be applied to min jerk too. If this seems correct to you I'll happily send a pull request.
The text was updated successfully, but these errors were encountered: