Skip to content

Fixes usages of deprecated control_toolbox constructors. - #350

Merged
barulicm merged 1 commit into
mainfrom
dev/barulicm/control_toolbox_update
Jul 4, 2025
Merged

Fixes usages of deprecated control_toolbox constructors.#350
barulicm merged 1 commit into
mainfrom
dev/barulicm/control_toolbox_update

Conversation

@barulicm

@barulicm barulicm commented Jul 4, 2025

Copy link
Copy Markdown
Contributor

The latest release of control_toolbox deprecated some constructors we were using for their objects to add their new AntiWindupStrategy system. This PR changes our code to use the new constructors.

this->x_controller.initialize(2.8, 0.0, 0.002, 0.3, -0.3, true);
this->y_controller.initialize(2.8, 0.0, 0.002, 0.15, -0.15, true);
this->t_controller.initialize(2.5, 0.0, 0.0, 0.5, -0.5, true);
const auto u_max = std::numeric_limits<double>::infinity();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would it be better to set these to like the max velocity or something just to make sure the controller doesn't go completely crazy?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You already do that clamping elsewhere for now, and I was trying to keep this changeset minimal.
We certainly could consider using their implementation of clamping instead in the future.

@barulicm
barulicm merged commit a1de340 into main Jul 4, 2025
1 check passed
@barulicm
barulicm deleted the dev/barulicm/control_toolbox_update branch July 4, 2025 04:07
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.

2 participants