-
Notifications
You must be signed in to change notification settings - Fork 327
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
Add wrench offset for admittance controller #1249
base: master
Are you sure you want to change the base?
Add wrench offset for admittance controller #1249
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, the changes look good to me. I've left some minor comments. Please take a look
Co-authored-by: Sai Kishor Kothakota <[email protected]>
@firesurfer can you remove the draft status on the title? |
@saikishor I removed the draft status. |
Any of the other reviewers willing to take a look at this ? |
Do you have any ideas for a test for this by any chance? |
Co-authored-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Bence Magyar <[email protected]>
The way I tested it on hardware was: Load the controller and then command 1N into a single direction. One will then see a motion of the arm in that direction. I guess it would be possible to implement something similar in an unit test. |
@destogl When browsing through the tests I found this:
Apparently there was some support for a force command planned but not implemented? Is this right? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally, great!
What I would like to know is, do we want to enable this input even admittance controller is in a chain? As you did right now. I am more on a yes
side, but would like to hear opinions.
{ | ||
if (msg.header.frame_id != admittance_->parameters_.ft_sensor.frame.id && !msg.header.frame_id.empty()) | ||
{ | ||
RCLCPP_ERROR_STREAM( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't we transform the wrench if it is in another frame to the sensor frame?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had some very weird results in the past when transforming wrenches with TF (e.g. non zero torques afterwards when only forces where given). Additionally I don't think we have a tf buffer/listener in the controller at the moment and why add this additional overhead?
…:firesurfer/ros2_controllers into feature/admittance_wrench_target_rolling
This PR adds an additional WrenchStamped subscriber to the AdmittanceController in order to allow specifying a Wrench offset.
The basic idea behind this PR is to simply add the offset to the measured force values which has the controller to produce an offset into the desired direction. I tested it on an UR16e where it seems to work quite well.
Is this a desired feature? What do you think of it? Perhaps there are better ways to implement this feature in this controller.