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

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?

PS:
If you have any basic torque controller that uses tracking of a trajectory or setpoint tracking would be of great help.
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_serverand/iiwa/iiwa_gravity_serverrespectively. 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 belowThe gravity server requires torques as inputs. why do we need to give torque when requesting the
/iiwa/iiwa_gravity_serverfor 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?
PS:
If you have any basic torque controller that uses tracking of a trajectory or setpoint tracking would be of great help.