Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

Hi,

Have you tried creating a plugin, and then accessing the joint like this:

physics::JointPtr jointPtr;

jointPtr = this->myModel->GetJoint("jointName"); OR jointPtr = this->myModel->GetJoint(int index);

jointPtr->GetForce();

Here are some tutorials with plugins.

Cheers, Andrei