Page 1 of 1

Joint electrical engine mode

Posted: 15 Jun 2018, 09:10
by OfekEshet

I think that there is no way to simulate a joint which works like an electrical engine in vrep.
I have tried a lot of things, including custome control, and everytime i failed to simulate the electrical engine.

I would like to know if there is a way to simulate such an engine in vrep? and if not I would like to have such Joint mode, in order to create a full functional Frc robot simulation. this is the current state with an electrical engine it would be finished.


Re: Joint electrical engine mode

Posted: 15 Jun 2018, 15:17
by coppelia

your simulated motor can have different velocity or torque profiles, but you'll have to implement this yourself inside of a joint control callback function.


Re: Joint electrical engine mode

Posted: 16 Jun 2018, 15:57
by OfekEshet
Thanks for replying,

Its a great help, but I have tried this way once and I got the feeling that vrep changed the values, which I gave him.
Is that correct?

Moreover is the target possition change the movement of the joint? i would like it to move only by the velocity and torque values which i gives him according to an electrical engine.

Thanks and have a nice weekend.

Re: Joint electrical engine mode

Posted: 20 Jun 2018, 09:02
by coppelia
Following illustrates how you can set the target velocity and max. force/torque for a force, controlled from your algorithm:

Code: Select all

function sysCall_jointCallback(inData)
    local targetVelocity=0.2 -- in rad/sec
    local maxForce=15

    local outData={}
    return outData