Closed ndehio closed 7 years ago
Nice that you are looking into it. Please create a detailed specification and submit a (C++) proposal. I will then review it before we officially release it.
Well, as far as I understand the simulation bridge, one need to add new input ports (e.g.. "in_externalForce_LElb") for each robot link which expects to read our realtime-type "Force". Alternatively, we can add such ports for each kinematic chain and expect a vector of three-dimensional "Forces".
Both ways a user can specify an external force for each link in each time step. Once the simulation bridge receives such forces it should apply them immediately to the center of mass of the specified links. I don't know how this will work in detail.
i think we should not do it inside the robot simulation component
this is related to https://github.com/cogimon/cogimon.github.io/issues/22
I just added a component "GazeboForceTorqueExerter" into our cosima-projected-dynamics repo and provide a simple example in the ops file https://github.com/cogimon/cosima-projected-dynamics/blob/master/ops/SimpleKDLExample.ops
In the Gazebo-Gui one can easily apply external forces to specific robot-links. How can we apply external forces automatically by an orocos component in simulation? Please extend the gazebo/robot-sim interface.
We discussed this feature already 12 month ago. It is highly necessary to simulate human-like disturbances as we will need for the two cogimoin scenarios "human-coman carrying a table" and "dual-kuka setup manipulation tasks"