Skip to content

Conversation

ViktorCVS
Copy link

@ViktorCVS ViktorCVS commented Sep 4, 2025

Overview

This PR aligns ur_controllers with the current joint_trajectory_controller
parameter schema on Rolling by switching the anti-windup clamping from the
symmetric gains.i_clamp to the explicit gains.i_clamp_max / gains.i_clamp_min.
This matches how JTC exposes per-joint PID limits and the newer anti-windup
options, while keeping behavior identical when max = +M and min = −M.

What was added/changed in this PR

  • Replace gains.i_clamp with gains.i_clamp_max / gains.i_clamp_min
    in the anti-windup mapping.
  • Enable asymmetric integral limits when configured by users.
  • Bring ur_controllers in line with JTC’s Rolling parameter names and
    anti-windup configuration.

About tests

The packages compile correctly and have passed the colcon tests.

Related PR's

Final notes

I'm very open to any recommendations to improve this code.

Replace gains.i_clamp with gains.i_clamp_max/min for anti-windup.
Enables asymmetric integral limits and matches current names.
Symmetric configs (max=+M, min=-M) keep the same behavior.
@ViktorCVS
Copy link
Author

@christophfroehlich done!

@urfeex
Copy link
Member

urfeex commented Sep 5, 2025

Thank you very much for this! However, I would like to go with #1485 instead.

@christophfroehlich
Copy link
Contributor

haven't seen this before :) do you want me to wait with the release of ros2_controllers? will you backport yours also to kilted? otherwise this here should go into kilted, cause we haven't branched off yet

@urfeex
Copy link
Member

urfeex commented Sep 5, 2025

We also haven't branched off for kilted at the moment, so that's fine. I'll go ahead and close this in favor of #1485

@urfeex urfeex closed this Sep 5, 2025
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