Skip to content
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

Fix Interpolation Logic #516

Merged
merged 2 commits into from
Feb 10, 2023
Merged

Fix Interpolation Logic #516

merged 2 commits into from
Feb 10, 2023

Conversation

swiz23
Copy link
Contributor

@swiz23 swiz23 commented Feb 5, 2023

Within the from_string function, there is logic being performed to determine what interpolation method to use for the Joint Trajectory Controller. Currently, the logic to check if 'splines' is being used seems to say... if the specified interpolation method is not equal to splines, then return the splines interpolation method. This doesn't make sense to me. I think the check should really be if the specified interpolation method is equal to splines, then return the splines interpolation method.

Since there are only two options currently, this does not cause any breaking change (as we first check to see if 'None' is specified). However, if there were three or more interpolation methods, then the check in its current state will return either 'None' or Splines only.

@AndyZe, @mechwiz

Copy link
Contributor

@AndyZe AndyZe left a comment

Choose a reason for hiding this comment

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

Yep, this makes sense to me. Good find.

Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

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

Thanks! Good catch!

@destogl destogl enabled auto-merge (squash) February 8, 2023 16:35
@bmagyar
Copy link
Member

bmagyar commented Feb 10, 2023

@Mergifyio backport humble

@mergify
Copy link
Contributor

mergify bot commented Feb 10, 2023

backport humble

✅ Backports have been created

@bmagyar bmagyar merged commit 7cc3434 into ros-controls:master Feb 10, 2023
mergify bot pushed a commit that referenced this pull request Feb 10, 2023
Co-authored-by: Solomon Wiznitzer <solomon.wiznitzer@resquared.com>
(cherry picked from commit 7cc3434)
bmagyar pushed a commit that referenced this pull request Feb 12, 2023
Co-authored-by: Solomon Wiznitzer <solomon.wiznitzer@resquared.com>
(cherry picked from commit 7cc3434)

Co-authored-by: Solomon Wiznitzer <31753673+swiz23@users.noreply.github.com>
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.

None yet

4 participants