[feat] Admittance Controller & Variable stiffness support#75
Merged
danielsanjosepro merged 5 commits intolearnsyslab:mainfrom Apr 9, 2026
Conversation
Add support for the cartesian_admittance_controller ros2_control plugin: - Add cartesian_admittance_controller_name and target_admittance_stiffness_topic fields to RobotConfig - Add admittance_controller_parameters_client and admittance stiffness publisher to Robot class - Add set_admittance_stiffness() method for runtime variable stiffness control - Add default_admittance.yaml config with impedance outer loop, virtual MSD admittance params, and F/T sensor settings - Add example 22_admittance_variable_stiffness.py demonstrating runtime stiffness changes from stiff to compliant
Match impedance outer loop params to the actual working config: k_pos=900, k_rot=45, explicit damping, error clipping, nullspace stiffness, and use_local_jacobian. Remove F/T sensor filter/offset config.
…admittance ctrl example
85c17f8 to
d814f23
Compare
Contributor
Author
|
@danielsanjosepro, since learnsyslab/crisp_controllers#47 was merged, I believe we may proceed with this one |
Collaborator
|
Sure, I added one comment what do you think about it? :) |
Contributor
Author
|
I am sorry, but I am afraid I could not see any comments |
| self._target_joint_publisher = self.node.create_publisher( | ||
| JointState, self.config.target_joint_topic, qos_profile_system_default | ||
| ) | ||
| self._target_admittance_stiffness_publisher = self.node.create_publisher( |
Collaborator
There was a problem hiding this comment.
Maybe we could make this one optional with a param in the config file to avoid using it if no admittance controller is being used
Collaborator
|
I am sorry @domrachev03 the comment was still in a pending review ... it should be visible now |
…led FR3 robot config
Contributor
Author
|
No problem! I've fixed that, and also added one config with admittance enabled, as an example: fr3_admittance.yaml. Let me know what do you think about it |
Collaborator
|
Looking good! This is ready to merge :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR accompanies learnsyslab/crisp_controllers#47. Please see it for a detailed description of the problem and newly introduced functionality.
It:
Thanks to @lvjonok for participating in the discussion and preliminary code review