Skip to content

Commit

Permalink
planning: bug fix for rotation correction
Browse files Browse the repository at this point in the history
  • Loading branch information
YajiaZhang authored and lianglia-apollo committed Jul 6, 2018
1 parent 8d0d74f commit 23f3cd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/planning/common/trajectory/trajectory_stitcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ void TrajectoryStitcher::TransformLastPublishedTrajectory(const double x_diff,

auto x_new = cos_theta * x - sin_theta * y + tx;
auto y_new = sin_theta * x + cos_theta * y + ty;
auto theta_new = common::math::WrapAngle(theta + theta_diff);
auto theta_new = common::math::WrapAngle(theta - theta_diff);

p.mutable_path_point()->set_x(x_new);
p.mutable_path_point()->set_y(y_new);
Expand Down

0 comments on commit 23f3cd1

Please sign in to comment.