When is range in a coordinate honored?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sietse Achterop
Posts: 72
Joined: Tue Sep 14, 2021 3:01 am

When is range in a coordinate honored?

Post by Sietse Achterop » Thu Dec 09, 2021 8:59 am

Hello List,
When doing forward dynamics and inverse kinematics it seems that the range restriction is not honored.
For example

Code: Select all

 <Coordinate name="footangle">
       <range>0.200 1.57</range>
 </Coordinate>
I thought that the purpose of a range is to restrict the possible values of the coordinate.
Am I missing something?
Thanks in advance,
Sietse

User avatar
Carmichael Ong
Posts: 378
Joined: Fri Feb 24, 2012 11:50 am

Re: When is range in a coordinate honored?

Post by Carmichael Ong » Thu Dec 09, 2021 6:58 pm

Double check that the "clamped" property is also set to true. If this is true, then the range should be taken into effect for inverse kinematics but not for forward dynamics. If you want to limit a coordinate in forward dynamics, consider adding a CoordinateLimitForce (https://simtk.org/api_docs/opensim/api_ ... Force.html) to the model.

User avatar
Sietse Achterop
Posts: 72
Joined: Tue Sep 14, 2021 3:01 am

Re: When is range in a coordinate honored?

Post by Sietse Achterop » Fri Dec 10, 2021 2:40 am

Thanks!

POST REPLY