-
Notifications
You must be signed in to change notification settings - Fork 120
Fixed Rate limiter's Asymmetric Initialization #549
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: master
Are you sure you want to change the base?
Fixed Rate limiter's Asymmetric Initialization #549
Conversation
| min_first_derivative_pos_ = -min_first_derivative_neg_; | ||
| } | ||
| if (has_first_derivative_limits_ && min_first_derivative_pos_ > max_first_derivative_neg_) | ||
| if (has_first_derivative_limits_ && asym_given && |
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.
I didn't removed it, instead I patched it.
But I suggest this is redundant. As we already has set the min_first_derivative_pos_ and, max_first_derivative_neg_.
This is just my opinion, and I welcome yours too.
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.
I don't think the new criterion is necessary?
christophfroehlich
left a comment
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.
Can you please add tests for this?
| min_first_derivative_pos_ = -min_first_derivative_neg_; | ||
| } | ||
| if (has_first_derivative_limits_ && min_first_derivative_pos_ > max_first_derivative_neg_) | ||
| if (has_first_derivative_limits_ && asym_given && |
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.
| if (has_first_derivative_limits_ && asym_given && | |
| if (asym_given && |
Isn't this redundant, too? (L208)
| min_first_derivative_pos_ = -min_first_derivative_neg_; | ||
| } | ||
| if (has_first_derivative_limits_ && min_first_derivative_pos_ > max_first_derivative_neg_) | ||
| if (has_first_derivative_limits_ && asym_given && |
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.
I don't think the new criterion is necessary?
|
I think it is necessary, because without this we got failure in tests, where failure shouldn't be expected. Like, Without Test Summary: The reason: This arises because we are using asymmetric limits, but the validation expects symmetric (This is my assumption). The validation check itself seems logically flawed. So, I added the I also think, I'm just delegating the error. But I don't have any other plan under my sleeves. So, if you have any ideas or plans, please share it with me. Thanks, @christophfroehlich! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #549 +/- ##
==========================================
+ Coverage 83.85% 83.88% +0.03%
==========================================
Files 30 30
Lines 2094 2098 +4
Branches 112 112
==========================================
+ Hits 1756 1760 +4
Misses 268 268
Partials 70 70
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Hello! Respected Maintainers and Reviewers!
Again, this is Surya!
This PR addresses the issue #2029 opened in ros2_controllers.
It fixes,
The promise of
description: "Maximum deceleration in reverse direction. If not set, -max_deceleration will be used."given in diff_drive_controller.