Skip to content

Commit

Permalink
fix trajectory tracking calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kerikun11 committed Apr 25, 2021
1 parent d8a96a9 commit 9cf7da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ctrl/trajectory_tracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class TrajectoryTracker {
k1 * (cos_theta * (x_r - x) + sin_theta * (y_r - y));
const auto w = w_d +
k2 * v_d * sinc(th_r - theta) *
(cos_theta * (x_r - x) - sin_theta * (y_r - y)) +
(-sin_theta * (x_r - x) + cos_theta * (y_r - y)) +
k3 * (th_r - theta);
res.v = v;
res.w = w;
Expand Down

0 comments on commit 9cf7da4

Please sign in to comment.