-
Notifications
You must be signed in to change notification settings - Fork 334
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
Update command limiter of diff_drive_controller #1315
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1315 +/- ##
==========================================
+ Coverage 83.62% 83.73% +0.10%
==========================================
Files 122 122
Lines 11018 11047 +29
Branches 934 937 +3
==========================================
+ Hits 9214 9250 +36
+ Misses 1495 1489 -6
+ Partials 309 308 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
3f793b3
to
0efffbf
Compare
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.
Very nice!
f17b449
to
568765e
Compare
568765e
to
6b3f583
Compare
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.
LGTM except the removing cmath.
@tpoignonec as you are currently working on this topic, could you please test this and leave a review here? |
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.
Maybe I missed something, but shouldn't the SpeedLimiter
be also modified at this point to accept the new parameters as constructor arguments?
With the new parameters (i.e., max_acceleration_reverse
and max_deceleration_reverse
), everything is already ready to call
SpeedLimiter(
double min_velocity = std::numeric_limits<double>::quiet_NaN(),
double max_velocity = std::numeric_limits<double>::quiet_NaN(),
double max_acceleration = std::numeric_limits<double>::quiet_NaN(),
double max_deceleration = std::numeric_limits<double>::quiet_NaN(),
double max_acceleration_reverse = std::numeric_limits<double>::quiet_NaN(),
double max_deceleration_reverse = std::numeric_limits<double>::quiet_NaN(),
double min_jerk = std::numeric_limits<double>::quiet_NaN(),
double max_jerk = std::numeric_limits<double>::quiet_NaN())
fd14b1e
to
ffea38a
Compare
Totally right, I was refactoring that several times because I could not decide what to deprecate and where to use the RateLimiter class directly. |
Thanks for testing this, you motivated me to write a gmock test for that case. |
This pull request is in conflict. Could you fix it @christophfroehlich? |
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.
Just few minor things. Overall looks good
diff_drive_controller/include/diff_drive_controller/speed_limiter.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Sai Kishor Kothakota <[email protected]>
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.
Thanks for the changes. LGTM
95a618f
ros-controls/control_toolbox#212
It additionally adds parameters
max_acceleration_reverse
andmax_deceleration_reverse
to configure asymmetric acceleration/deceleration behavior.Closes #1317