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

Inverse Dynamic control and gravity compensation problem #108

Open
Shravista opened this issue Jun 4, 2023 · 2 comments
Open

Inverse Dynamic control and gravity compensation problem #108

Shravista opened this issue Jun 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Shravista
Copy link

Shravista commented Jun 4, 2023

Hii,

We are trying out the inverse dynamics controller for the kuka using the mass matrix and velocity product obtained from the /iiwa/iiwa_mass_server and /iiwa/iiwa_gravity_server respectively. In the case of the velocity product, the request to the server is with gravity vector zero and the torques field is the current effort coming from /iiwa/joint_states. The controller looks like this below

inverseDynamicsController

The gravity server requires torques as inputs. why do we need to give torque when requesting the /iiwa/iiwa_gravity_server for the response? Further, what torques do we need to provide, the commanded torques or the torques including gravity compensation?

is the below ros graph correct?

rosgraph

PS:
If you have any basic torque controller that uses tracking of a trajectory or setpoint tracking would be of great help.

@costashatz
Copy link
Collaborator

First, apologies for the late answer, but I was traveling a lot the last month and didn't get the chance to reply.

The gravity server requires torques as inputs. why do we need to give torque when requesting the /iiwa/iiwa_gravity_server for the response?

This is wrong. Most probably because of some copy-paste. Let me fix that.

is the below ros graph correct?

The graph and the controller looks ok.

Did you manage to make it work?

@costashatz costashatz added the bug Something isn't working label Jul 14, 2023
@costashatz costashatz self-assigned this Jul 14, 2023
@Shravista
Copy link
Author

Currently, I couldn't make it work and on top of that kuka robot in our lab is under maintenance. So once the maintenance is completed I will test it out. Additionally, I think that mass and inertia matrix values are not so close to the actual robot, I know a way to figure out the same or use the Adaptive Torque controller (similar to the inverse dynamics controller) from Bruno Scillano's book and see the tracking. I will let you know once our robot's maintenance is complete and we tested our controllers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants