Skip to content

Commit

Permalink
fix: correct curvature signal on RPP (#2979) (#2995)
Browse files Browse the repository at this point in the history
* fix: correct curvature signal

Signed-off-by: Afonso da Fonseca Braga <[email protected]>

* cleanup: move sign's position

Signed-off-by: Afonso da Fonseca Braga <[email protected]>
  • Loading branch information
afonsofonbraga authored Jun 2, 2022
1 parent 36c52eb commit 87af505
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,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 = linear_vel * curvature;
angular_vel = sign * linear_vel * curvature;
}

// Collision checking on this velocity heading
Expand Down

0 comments on commit 87af505

Please sign in to comment.