Gazebo | Ignition | Community
Ask Your Question

Read/Write Torque in a Joint

asked 2013-11-04 12:03:31 -0500

Hi, I have to implement a YARP interface in order to permit Joint Torque Control. Actually I don't understand which class and method I have to use in GAZEBO to do this. I am trying different things combining JointPtr and JointCmd but I do not understand from which I can take the torque that the joint is providing and from which I can set a reference torque. Any suggestion? Thank you


edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2013-11-05 22:48:55 -0500

glinde gravatar image

The tutorial Controlling a Mobile Robot shows how to set the torque for joints in a model plugin with gazebo::physics::Joint::SetForce().

edit flag offensive delete link more


Thankyou, I have solved in this way :).

Enrico Mingo gravatar imageEnrico Mingo ( 2013-11-06 05:27:46 -0500 )edit

answered 2015-06-23 06:30:53 -0500

winston gravatar image

updated 2015-06-23 06:32:19 -0500

@glinde is right but the link is invalid. I have found another link of a related source file. Read this: Try to use SetForce() method. Hope it helps. BTW, Gazebo source file is a good reference for studying Gazebo.

edit flag offensive delete link more

answered 2015-06-22 15:26:44 -0500

Marco Ursumando gravatar image

Hello, I have the same problem, but the tutorial link in the answer has been removed! I cannot find a tutorial that explains how to control joint torques in a gazebo model using gazebo plugins. Someone can help?

edit flag offensive delete link more

answered 2013-11-05 05:02:16 -0500

No one has the same issue?

edit flag offensive delete link more

Question Tools


Asked: 2013-11-04 12:03:31 -0500

Seen: 8,213 times

Last updated: Jun 23 '15