-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[Graceful Controller] Add deceleration limit #5511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sakshay Mahna <[email protected]>
Signed-off-by: Sakshay Mahna <[email protected]>
Signed-off-by: Sakshay Mahna <[email protected]>
@SteveMacenski A few points to note on the implementation:
|
@@ -48,6 +48,8 @@ Controller::Controller( | |||
node, "controller.v_angular_max", rclcpp::ParameterValue(0.75)); | |||
nav2::declare_parameter_if_not_declared( | |||
node, "controller.slowdown_radius", rclcpp::ParameterValue(0.25)); | |||
nav2::declare_parameter_if_not_declared( | |||
node, "controller.deceleration_max", rclcpp::ParameterValue(0.1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a sane value?
@@ -66,7 +73,10 @@ geometry_msgs::msg::Twist SmoothControlLaw::calculateRegularVelocity( | |||
double v = v_linear_max_ / (1.0 + beta_ * std::pow(fabs(curvature), lambda_)); | |||
|
|||
// Slowdown when the robot is near the target to remove singularity | |||
v = std::min(v_linear_max_ * (ego_coords.r / slowdown_radius_), v); | |||
v = std::min(v_linear_max_ * (target_distance / slowdown_radius_), v); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change from ego_coords.r
?
Also check out the CI tests, a few are legit failing it looks like from this update |
Update cloned repo
@SakshayMahna any update? I see you pulled in main |
No not yet. I will get it done by this week. |
Signed-off-by: Sakshay Mahna <[email protected]>
Basic Info
Description of contribution in a few bullet points
Graceful Controller makes use of a slowdown radius to stop at the target. This PR additionally applies deceleration limit while the robot is stopping.
Description of documentation updates required from your changes
deceleration_max
to Graceful Controller.Description of how this change was tested
Tested in simulation.
Future work that may be required in bullet points
For Maintainers:
backport-*
.