Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi Skhan, sorry for the late reply, one way to do this is to create a model plugin, for example, see this tutorial on how to create a model plugin. In the plugin update loop, you can get the force torque information from one of the joints in the model by calling:

    physics::JointWrench wrench = this->model->GetJoint("...your model joint name...")->GetForceTorque(0u);

On the SDF side, in your model, you must set <provide_feedback> to true for this to work.