Skip to content

Add new members for PID controller parameters #1585

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ViktorCVS
Copy link
Contributor

Add new members to the PID controller parameters to support saturation and three new anti-windup features.

These changes support modifications made to the PID controller in the control_toolbox package. For more details, see ros-controls/control_toolbox#298.

If this PR is approved, it should be merged together with the main PR in the control_toolbox package referenced above.

@christophfroehlich
Copy link
Contributor

I set this as draft until we approved the control_toolbox PR.

Adds new members to PID controller parameters to support saturation and
three new anti-windup features.
ViktorCVS and others added 3 commits May 29, 2025 17:56
Replace the `subset_of` validator with `one_of` because
`antiwindup_strategy` is a single string, not a string_array.
Copy link

codecov bot commented May 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.18%. Comparing base (9f2d9e6) to head (183395f).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1585   +/-   ##
=======================================
  Coverage   86.18%   86.18%           
=======================================
  Files         123      123           
  Lines       11846    11846           
  Branches      992      992           
=======================================
  Hits        10210    10210           
  Misses       1333     1333           
  Partials      303      303           
Flag Coverage Δ
unittests 86.18% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@christophfroehlich christophfroehlich marked this pull request as ready for review June 6, 2025 09:37
Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that this is not only related to this PR here, but I realize now that the saturation parameter is somehow superfluous: What do you think about initializing u_clamp with inf here, which will be std::numeric_limits<double>::infinity() and the clamping in the base class automatically deactivated? I don't see the benefit of adding an additional boolean parameter..

type: double,
default_value: 0.0,
description: "Lower output clamp."
}
antiwindup: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this parameter got deprecated, right? Please add this also in the description here.

@christophfroehlich
Copy link
Contributor

Sai is working on this in ros-controls/control_toolbox#390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants