Hi,
To model a spring it is advised to use the torque/force (on page joint description).
Could you elaborate more how exactly this models a spring with a certain force? Also in combination with the PID control, because the spring damper example also uses a PID control...
Spring force
Re: Spring force
Hello Geerten,
a joint that is in force/torque mode, and has the PID controll enabled, together with the "regulate torque/force" item, will behave like a spring (also damped if desired).
In above described mode, the positional error (e) of the joint will be used to calculate a force on that joint. So that force will be proportional to e, like a linear spring, where the force is proportional to the displacement.
Cheers
a joint that is in force/torque mode, and has the PID controll enabled, together with the "regulate torque/force" item, will behave like a spring (also damped if desired).
In above described mode, the positional error (e) of the joint will be used to calculate a force on that joint. So that force will be proportional to e, like a linear spring, where the force is proportional to the displacement.
Cheers
Re: Spring force
But how would I match the parameters in V-REP to the specifications of an existing spring?
So what is the influence of the parameters (force, and the PID parameters) on the final force (which is based on the parameters plus the positional error)?
So what is the influence of the parameters (force, and the PID parameters) on the final force (which is based on the parameters plus the positional error)?
Re: Spring force
Here is Hook's law:
F=k*x
where F is the force of a spring, k its constant, and x its displacement (or stretch/compression)
In V-REP when using the setting previously mentioned:
F=ctrl*maxForce
where ctrl is the control, and maxforce the maximum force indicated for that joint. For ctrl we have:
ctrl=e*P+integratedErrors*I+(e-previous_e)*D
With the PID parameters in P, I and D
Cheers
F=ctrl*maxForce
F=k*x
where F is the force of a spring, k its constant, and x its displacement (or stretch/compression)
In V-REP when using the setting previously mentioned:
F=ctrl*maxForce
where ctrl is the control, and maxforce the maximum force indicated for that joint. For ctrl we have:
ctrl=e*P+integratedErrors*I+(e-previous_e)*D
With the PID parameters in P, I and D
Cheers
F=ctrl*maxForce
Re: Spring force
One final question about this:
What is the unit of max torque/force? Newton?
One feature request with this: it would be nice to have the units explicitly mentioned next to every field that has a unit..
What is the unit of max torque/force? Newton?
One feature request with this: it would be nice to have the units explicitly mentioned next to every field that has a unit..
Re: Spring force
Hello Geerten,
The Unit in the GUI depends on your settings. Also, if your selected joint is a prismatic joint, then the Unit will be a force expressed in Newton (given that your settings are on meters and seconds). But if your selected joint is a revolute joint, then the Unit will be a torque expressed in Newton*m (here also given that you have the default settings).
Cheers
The Unit in the GUI depends on your settings. Also, if your selected joint is a prismatic joint, then the Unit will be a force expressed in Newton (given that your settings are on meters and seconds). But if your selected joint is a revolute joint, then the Unit will be a torque expressed in Newton*m (here also given that you have the default settings).
Cheers