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 out of bound access in admittance controller #721

Merged

Conversation

Abishalini
Copy link
Contributor

@Abishalini Abishalini commented Jul 26, 2023

If the number of robot joints is more than 6, admittance controller currently segfaults with an out-of-bound access error.
This PR moves a few state updates out of the loop which iterates over the number of joint states.

@Abishalini Abishalini force-pushed the pr-fix-admittance-stiffness-bug branch from f123bae to 66fbee3 Compare July 27, 2023 06:36
@Abishalini Abishalini changed the base branch from humble to master July 27, 2023 06:36
@Abishalini
Copy link
Contributor Author

I have retargeted the changes to go in the master branch.
Can this be backported to humble when this PR is merged?

@Abishalini Abishalini requested a review from sea-bass July 27, 2023 06:42
@bmagyar bmagyar added the backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. label Jul 27, 2023
@Abishalini Abishalini requested a review from bmagyar July 27, 2023 15:13
Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

Thanks very much!

@bmagyar bmagyar merged commit 76c22ff into ros-controls:master Jul 27, 2023
13 checks passed
mergify bot pushed a commit that referenced this pull request Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants