Requests or suggestions for new features
Posts: 11
Joined: 22 Jun 2018, 23:03

Hi,

If I'm informed correctly, there is currently a way to set the "Maximum Force" of a dynamic joint using function sim.setJointForce, but no way to read the value of said parameter. There is only a way to read the "Current Force" applied to a joint using sim.getJointForce.

It would be nice to have a getter for the Maximum Force as well. It looks like almost all other dynamic parameters for joints have a Object Parameter ID already, except for the Maximum Force.

I guess it might be worth considering to add a new parameter ID (e.g. sim.jointfloatparam_maximum_force) or a new getter function (e.g. sim.getJointMaximumForce()).

For my specific project, this would make it easier to monitor the status of multiple joint controllers and check whether the maximum force was reached or not.

Best,

coppelia
Posts: 7691
Joined: 14 Dec 2012, 00:25

I agree. In next release you'll have following two API functions:

sim.setJointMaxForce
sim.getJointMaxForce

while sim.setJointForce will be deprecated (but still functional), to avoid confusion or any relation with sim.getJointForce.

In the mean time, as a workaround, you could implement a script function that buffers the joints max. forces, when setting them, and another function that retrieves values from that, when getting them.

Cheers

coppelia
Posts: 7691
Joined: 14 Dec 2012, 00:25