Page 1 of 1

Clamping coordinates during forward dynamic simulations

Posted: Mon Jul 02, 2018 12:03 pm
by peterbishop
Hello,
I've been trying to run forward dynamic simulations (both from the GUI and the API via MATLAB) and find that some of my model's coordinates go beyond their specified range of motion during the simulations. To stop this I've tried clamping the coordinates, but this does not seem to work - the simulations ignore the clamped bounds and the coordinates go outside of their specified ranges anyway. (I don't have this problem if I lock the coordinates, however; locked coordinates stay immobilised during the simulations.)

Any thoughts on what I might be missing would be greatly appreciated. Thanks!

Peter Bishop.

Re: Clamping coordinates during forward dynamic simulations

Posted: Mon Jul 02, 2018 12:14 pm
by jimmy
The range of motion and clamping are only for kinematic analyses (IK). In a Forward simulation, you need to define forces, and there would have to be some way of determining the forces that these 'hard-stops' (joint limits or clamps) would generate.

Instead, you will have to add something like a CoordinateLimitForce() of maybe a constraint to your model.