Skip to content

Commit

Permalink
Removed additional sign multiplication (#3088) (#3125)
Browse files Browse the repository at this point in the history
(cherry picked from commit ef76b5b)

Co-authored-by: autome <rohit.bhor111.rb@gmail.com>
  • Loading branch information
mergify[bot] and automech-rb authored Aug 19, 2022
1 parent 91883ce commit 10cd1a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ geometry_msgs::msg::TwistStamped RegulatedPurePursuitController::computeVelocity
costAtPose(pose.pose.position.x, pose.pose.position.y), linear_vel, sign);

// Apply curvature to angular velocity after constraining linear velocity
angular_vel = sign * linear_vel * curvature;
angular_vel = linear_vel * curvature;
}

// Collision checking on this velocity heading
Expand Down

0 comments on commit 10cd1a1

Please sign in to comment.