Simulation stop with SetVelocityTarget()
Hello,
I'm writing a plugin to control the velocity of a joint to simulate a brushless motor I try to use the SetVelocityTarget() function with the SetVelocityPID() function. The plugin compile correctly but when I publish a new message to set the velocity, the simulation stop : the model disassembles itself at the origin of the world.
I already used the SetPositionTarget() with the PID and it works well.
Any ideas ?
Thanks
Asked by ronan on 2017-10-18 06:33:05 UTC
Answers
Your PID gains might be set too high. It's difficult to tell without more information. Could you post your model and sample code?
Asked by nkoenig on 2017-10-18 11:10:27 UTC
Comments
You can also start with low PID gains and work up to values that work well.
Asked by nkoenig on 2017-10-18 11:12:20 UTC
Yes, actually by changing the PID gain it works. That's it. Thanks nkoenig
Asked by ronan on 2017-10-19 14:40:40 UTC
Comments