Skip to content

Commit

Permalink
stability for target acceleration in 1 dof
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Dec 22, 2020
1 parent c96b80e commit a4228e7
Show file tree
Hide file tree
Showing 8 changed files with 1,807 additions and 538 deletions.
5 changes: 3 additions & 2 deletions include/ruckig/ruckig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ class Ruckig {
return false;
}

if ((input.target_acceleration.array() != 0.0).any()) {
std::cerr << "Ruckig does not support a target acceleration." << std::endl;
auto max_target_acceleration = (2 * input.max_jerk.array() * (input.max_velocity.array() - input.target_velocity.array().abs())).sqrt();
if ((input.target_acceleration.array().abs() > max_target_acceleration.array()).any()) {
std::cerr << "Target acceleration exceeds maximal possible acceleration." << std::endl;
return false;
}

Expand Down
244 changes: 103 additions & 141 deletions notebooks/ruckig-step1.nb

Large diffs are not rendered by default.

Loading

0 comments on commit a4228e7

Please sign in to comment.