Gazebo | Ignition | Community
Ask Your Question

Set Position of Joint using C++ API

asked 2019-12-18 02:53:37 -0600

Gaurav gravatar image

updated 2019-12-18 03:17:06 -0600

How to set position of joint using C++ API ? I found, joint->SetPosition(index, position/angle);

But, is there any other efficient way/function to set position of joint ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-08 12:14:25 -0600

eaucone gravatar image

You may write a controller using ros_control plugin and define an effort or position controller. You will have the possibility to set up the parameters of your controller (e.g. PID gains) so you will control the parameters regarding the convergence to the desired value for your joint.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2019-12-18 02:53:37 -0600

Seen: 159 times

Last updated: Jan 08 '20