controller from MATLAB

Typically: "How do I... ", "How can I... " questions
Post Reply
ntc

controller from MATLAB

Post by ntc »

Hi,

I want to use a position controller from Matlab to control the robot in V-REP. Can I send the joint torque to the robot of V-REP from matlab? I cannot find the suitable API. Thank you very much!

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

Re: controller from MATLAB

Post by coppelia »

Hello,

have a look at simxSetJointForce.

Cheers

ntc

Re: controller from MATLAB

Post by ntc »

coppelia wrote:Hello,

have a look at simxSetJointForce.

Cheers

Thank you for your reply. The function is "Sets the maximum force or torque that a joint can exert", instead of give a force/torque to it.

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

Re: controller from MATLAB

Post by coppelia »

That's how the physics engines operate: they apply the max. force or torque, until the desired velocity is reached. So in your case, simply set a very high Target velocity, then modulate the torque or force with simxSetJointForce.

Cheers

ntc

Re: controller from MATLAB

Post by ntc »

coppelia wrote:That's how the physics engines operate: they apply the max. force or torque, until the desired velocity is reached. So in your case, simply set a very high Target velocity, then modulate the torque or force with simxSetJointForce.

Cheers
I see. Thank you very much!

Post Reply