-
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:
|
|
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]>
|
Ping me when you want a review :-) |
Signed-off-by: Sakshay Mahna <[email protected]>
Signed-off-by: Sakshay Mahna <[email protected]>
Signed-off-by: Sakshay Mahna <[email protected]>
Up to date with main
Codecov Report❌ Patch coverage is
... and 4 files with indirect coverage changes 🚀 New features to boost your workflow:
|
|
Is this ready for a review yet? :-) |
|
Hi @SteveMacenski |
nav2_graceful_controller/include/nav2_graceful_controller/smooth_control_law.hpp
Show resolved
Hide resolved
Signed-off-by: Sakshay Mahna <[email protected]>
|
Single constructor for Smooth Control Law now. |
| k_phi_, k_delta_, beta_, lambda_, slowdown_radius_, v_linear_min_, v_linear_max_, | ||
| v_angular_max_); | ||
| k_phi_, k_delta_, beta_, lambda_, | ||
| slowdown_radius_, INFINITY, |
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.
How about std::numeric_limits<double>::max()? This is typically how we represent a large initialized value
| * @param backward If true, the robot is moving backwards. Defaults to false. | ||
| * @return Velocity command. | ||
| */ | ||
| geometry_msgs::msg::Twist calculateRegularVelocity( |
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 the duplication for the calc velocity / next pose methods? I Think this falls into the same camp to remove the duplication of methods. Can we simply call a single implementation and in the docking have the field for that be some arbitrarily high value like INF / MAX?
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_maxto Graceful Controller.Description of how this change was tested
Tested in simulation.
Future work that may be required in bullet points
For Maintainers:
backport-*.