How Do I Constrain Coordinates Range of Motion?

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Peter Nguyen
Posts: 2
Joined: Thu Aug 20, 2020 8:45 am

How Do I Constrain Coordinates Range of Motion?

Post by Peter Nguyen » Mon Aug 24, 2020 10:12 am

Hi,

I am having trouble with setting the min-max range for the coordinate of my model.
I have tried to modify the range inside the .osim file,I have also made sure to set <clamped>true<clamped> in the .osim file.
The numbers displayed in the coordinate window does change, but the value can still be out of the range.

For example. hip_rotation range was set to -10 to 45 degrees, clamp is toggled, yet the value can be out side of the specify range.

Nothing seems to work to constrain the range of motion for my coordinate which made my simulation (inverse Kinematic) to have weird poses and walking posture.

Have you encountered the same problem and how did you solve it?

Tags:

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: How Do I Constrain Coordinates Range of Motion?

Post by Dimitar Stanev » Tue Aug 25, 2020 12:48 am

Can you provide screenshots? It is possible that the problem originates in the marker placement and correspondence between pairs.

User avatar
Peter Nguyen
Posts: 2
Joined: Thu Aug 20, 2020 8:45 am

Re: How Do I Constrain Coordinates Range of Motion?

Post by Peter Nguyen » Tue Aug 25, 2020 5:52 am

Thanks. I have attached the screen shot below.

The body is strangely twisted and the values for some coordinates were beyond its range.
Let me know if you need to see other files.
Attachments
coordinate_open_sims.PNG
coordinate_open_sims.PNG (266.6 KiB) Viewed 421 times
Marker Set.PNG
Marker Set.PNG (163.92 KiB) Viewed 421 times

User avatar
Dimitar Stanev
Posts: 1096
Joined: Fri Jan 31, 2014 5:14 am

Re: How Do I Constrain Coordinates Range of Motion?

Post by Dimitar Stanev » Tue Aug 25, 2020 6:55 am

Can you also visualize the .trc file (File -> Preview Experimental Data)? I think it is not a problem of the IK tool or range of coordinates, but a bad placement and correspondence of the markers or possible the marker trajectory is not proper. By visualizing this, it will help you pinpoint the error.

POST REPLY