Page 1 of 1

Make a revolute joint behave like a spring

Posted: 02 May 2013, 14:46
by geerten
Hi,

I was wondering if it is possible to make a revolute joint behave like a spring. What I'm after is that the joint wants to move to a certain default position, but when something 'pushes' against an object that is attached to the joint, it can be moved (similar to the movement of a spring).

How can I accomplish this?

Re: Make a revolute joint behave like a spring

Posted: 02 May 2013, 15:13
by coppelia
Hello Geerten,

Yes, you can do this in a similar way as you would do it with a prismatic joint. Refer to the spring-damper example in Models/examples/spring-damper.

The joint needs to be in torque/force mode, the motor enabled, the Control loop enabled, Position control (PID) selected, and Regulate torque/force selected.

Then you can adjust the spring and damper with the Proportional parameter and the Derivative parameter. Refer to the joint dialog, the joint dynamics dialog, and this post.

Cheers

Re: Make a revolute joint behave like a spring

Posted: 03 May 2013, 07:40
by geerten
Ok, thanks. And how can I influence the direction it is 'pushing'?

Re: Make a revolute joint behave like a spring

Posted: 03 May 2013, 09:51
by coppelia
It will always push towards its target position (see this dialog). Try playing with that value and the demo spring model.

Cheers

Re: Make a revolute joint behave like a spring

Posted: 16 Feb 2015, 09:07
by robwag
Is this example scene available?
Robot Simulator: V-REP Simulation of a Spring-Damper Array
Marc Freese
https://www.youtube.com/watch?v=t1ZaQMDIUl8

Re: Make a revolute joint behave like a spring

Posted: 16 Feb 2015, 21:15
by coppelia
Hello,

the scene is not directly available. But all its content is in the Model library that comes with V-REP. So simply do a few drag-and-drops, and you have a similar scene.

Cheers

Re: Make a revolute joint behave like a spring

Posted: 16 Feb 2015, 22:24
by robwag
Thanks for the reply.

Ah ha! a few simple drag and drops would be wonderful once experience is gained... However as the domain experts of this wonderful system, as many examples as possible are the best way to share the knowledge. Alas... can you point me to an available scene example before I adventure in the experimental path of menu selections, etc.? Thanks in advance.

Re: Make a revolute joint behave like a spring

Posted: 16 Feb 2015, 22:35
by Eric
hi...

You don t really need to be a V-REP expert to do the drag and drop of objects and models, all the models of this scene are in the "model browser" on the left side of the window. Please just check it out!

To place them on the scene, if drag and drop is not precise enough you should spend a little time on the first tutorial, you ll learn everything you need to be able to interact with the software to achieve the positioning of objects you wish.

Cheers
Eric

Re: Make a revolute joint behave like a spring

Posted: 17 Feb 2015, 04:28
by robwag
Hello Eric,

It's not that I haven't tried, it's that I'm not getting the desired results so looking at something else working always seems to raise the confidence for me. I'll do some experiments to work it out since I'm sure it can be done. :)

Regards,

--RW