CentroEPiaggio / kuka-lwr

Software related to the KUKA LWR 4+: for real and for simulation.
The Unlicense
101 stars 81 forks source link

Bring effort interfaces back to work in Gazebo #40

Closed marcoesposito1988 closed 7 years ago

marcoesposito1988 commented 9 years ago

As can be seen in commit 3376577ed8475516c400ef84960576ac7df027d7, removing spring_effort makes the Gazebo simulation work again with effort controllers.

How can we do this in a clean way? Shall we put a yaml parameter to lwr_hw_sim?

carlosjoserg commented 9 years ago

I will update this next week as well. The idea is to have the same behavior in both lwr_hw_sim and lwr_hw_real, so the plugin will expose both PositionJointInterface and EffortJointInterface, emulating strategy 10 and 30.

For EffortJointInterface is clear, is what exists today that emulates strategy 30.

For PositionJointInterface there are two possible variants based on position commands:

  1. Use a PID within the plugin to compute efforts that are sent to the simulation.
  2. Use the SetPosition().

I prefer 2, even when it is not advised for simulation.

carlosjoserg commented 8 years ago

I believe this is partially solved by #42