Foce control

Typically: "How do I... ", "How can I... " questions
Post Reply
dds
Posts: 85
Joined: 20 Mar 2014, 14:35

Foce control

Post by dds »

Hi i'm new with simulator, I'm trying to control a V-rep model via matlab and i want to send torque/ force reference in orden to implement more complex control algotim, but i only find the option to send a velocity reference to the model .
is there any way to control joint force /Torqe , or joint motor voltage? ¿is the velociti/position target the only awy to control a joint?

coppelia
Site Admin
Posts: 10381
Joined: 14 Dec 2012, 00:25

Re: Foce control

Post by coppelia »

Hello,

have a look at following 2 remote API functions:
Cheers

dds
Posts: 85
Joined: 20 Mar 2014, 14:35

Re: Foce control

Post by dds »

Hello! thanks for the fast reply. the simxJointGetForce function is useful for what I do, however simxSetJointForce function seems to only set the maximum force that can be applied . My question is if I can send force references to joint in place of velocity references.

coppelia
Site Admin
Posts: 10381
Joined: 14 Dec 2012, 00:25

Re: Foce control

Post by coppelia »

that's the function you want to use!

simxSetJointForce will set the force that will be applied, as long as the maximum velocity is not reached. So if you want to do force/torque control, just set a high Target velocity and then regulate the force/torque as needed.

Cheers

dds
Posts: 85
Joined: 20 Mar 2014, 14:35

Re: Foce control

Post by dds »

Great! thanks

Post Reply