Skip to content

Commit 554c54e

Browse files
author
jimmyDunne
authored
Merge pull request #81 from opensim-org/wrist_model_update
Updated Wrist Model
2 parents 6a7e364 + a6f80df commit 554c54e

File tree

1 file changed

+55
-29
lines changed

1 file changed

+55
-29
lines changed

Models/WristModel/wrist.osim

Lines changed: 55 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<OpenSimDocument Version="20303">
33
<Model name="Wrist_Model">
4-
<!--See the credits section below for information about this model's authors, data sources, intended uses, and more. See the publications
5-
section for the paper(s) you should cite when using this model. Do not remove either section if you modify or add to this model.
4+
<!--See the credits section below for information about this model's authors, data sources, intended uses, and more. See the publications
5+
section for the paper(s) you should cite when using this model. Do not remove either section if you modify or add to this model.
66
If you are this model's author(s), add or update the credits and publications sections before distributing your model.-->
77
<credits>Gonzalez, R.V., Buchanan, T.S., Delp, S.L.</credits>
88
<publications>How muscle architecture and moment arms affect wrist flexion-extension moments. Journal of Biomechanics, vol. 30, pp. 705-712, 1997.</publications>
@@ -574,15 +574,14 @@
574574
<!--3 Axes for rotations are listed first.-->
575575
<TransformAxis name="rotation1">
576576
<!--Names of the coordinates that serve as the independent variables of the transform function.-->
577-
<coordinates>deviation</coordinates>
577+
<coordinates>auxprfem-auxprrud_coord</coordinates>
578578
<!--Rotation or translation axis for the transform.-->
579579
<axis>1 0 0</axis>
580580
<!--Transform function of the generalized coordinates used to represent the amount of transformation along a specified axis.-->
581581
<function>
582-
<SimmSpline>
583-
<x> -0.436332 0 0.610865</x>
584-
<y> -0.163625 0 0.305433</y>
585-
</SimmSpline>
582+
<LinearFunction>
583+
<coefficients> 1 0</coefficients>
584+
</LinearFunction>
586585
</function>
587586
</TransformAxis>
588587
<TransformAxis name="rotation2">
@@ -655,7 +654,7 @@
655654
<!--Generalized coordinates parameterizing this joint.-->
656655
<CoordinateSet>
657656
<objects>
658-
<Coordinate name="deviation">
657+
<Coordinate name="auxprfem-auxprrud_coord">
659658
<!--Coordinate can describe rotational, translational, or coupled motion. Defaults to rotational.-->
660659
<motion_type>rotational</motion_type>
661660
<!--The value of this coordinate before any value has been set. Rotational coordinate value is in radians and Translational in meters.-->
@@ -2745,21 +2744,20 @@
27452744
<inertia_yz>0</inertia_yz>
27462745
<!--Joint that connects this body with the parent body.-->
27472746
<Joint>
2748-
<CustomJoint name="updown">
2747+
<CustomJoint name="Wrist">
27492748
<!--Defines how the child body moves with respect to the parent as a function of the generalized coordinates.-->
27502749
<SpatialTransform>
27512750
<!--3 Axes for rotations are listed first.-->
27522751
<TransformAxis name="rotation1">
27532752
<!--Names of the coordinates that serve as the independent variables of the transform function.-->
2754-
<coordinates>flexion</coordinates>
2753+
<coordinates>deviation</coordinates>
27552754
<!--Rotation or translation axis for the transform.-->
27562755
<axis>1 0 0</axis>
27572756
<!--Transform function of the generalized coordinates used to represent the amount of transformation along a specified axis.-->
27582757
<function>
2759-
<SimmSpline>
2760-
<x> -1.5708 0 1.5708</x>
2761-
<y> -0.01 0 0.01</y>
2762-
</SimmSpline>
2758+
<LinearFunction>
2759+
<coefficients> 1 0</coefficients>
2760+
</LinearFunction>
27632761
</function>
27642762
</TransformAxis>
27652763
<TransformAxis name="rotation2">
@@ -2776,14 +2774,14 @@
27762774
</TransformAxis>
27772775
<TransformAxis name="rotation3">
27782776
<!--Names of the coordinates that serve as the independent variables of the transform function.-->
2779-
<coordinates></coordinates>
2777+
<coordinates>flexion</coordinates>
27802778
<!--Rotation or translation axis for the transform.-->
27812779
<axis>0 0 1</axis>
27822780
<!--Transform function of the generalized coordinates used to represent the amount of transformation along a specified axis.-->
27832781
<function>
2784-
<Constant>
2785-
<value>0</value>
2786-
</Constant>
2782+
<LinearFunction>
2783+
<coefficients> 1 0</coefficients>
2784+
</LinearFunction>
27872785
</function>
27882786
</TransformAxis>
27892787
<!--3 Axes for translations are listed next.-->
@@ -2828,10 +2826,26 @@
28282826
<location_in_parent> 0 0 0</location_in_parent>
28292827
<orientation_in_parent> -0 0 -0</orientation_in_parent>
28302828
<location> -0 0 0</location>
2831-
<orientation> -0 0 -1.5708</orientation>
2829+
<orientation> -0 0 0</orientation>
28322830
<!--Generalized coordinates parameterizing this joint.-->
28332831
<CoordinateSet>
28342832
<objects>
2833+
<Coordinate name="deviation">
2834+
<!--Coordinate can describe rotational, translational, or coupled motion. Defaults to rotational.-->
2835+
<motion_type>rotational</motion_type>
2836+
<!--The value of this coordinate before any value has been set. Rotational coordinate value is in radians and Translational in meters.-->
2837+
<default_value>0</default_value>
2838+
<!--The speed value of this coordinate before any value has been set. Rotational coordinate value is in rad/s and Translational in m/s.-->
2839+
<default_speed_value>0</default_speed_value>
2840+
<!--The minimum and maximum values that the coordinate can range between. Rotational coordinate range in radians and Translational in meters.-->
2841+
<range>-0.436332 0.610865</range>
2842+
<!--Flag indicating whether or not the values of the coordinates should be limited to the range, above.-->
2843+
<clamped>false</clamped>
2844+
<!--Flag indicating whether or not the values of the coordinates should be constrained to the current (e.g. default) value, above.-->
2845+
<locked>false</locked>
2846+
<!--If specified, the coordinate can be prescribed by a function of time. It can be any OpenSim Function with valid second order derivatives.-->
2847+
<prescribed_function />
2848+
</Coordinate>
28352849
<Coordinate name="flexion">
28362850
<!--Coordinate can describe rotational, translational, or coupled motion. Defaults to rotational.-->
28372851
<motion_type>rotational</motion_type>
@@ -2900,16 +2914,28 @@
29002914
<y> -0.610865 0.610865</y>
29012915
</SimmSpline>
29022916
</coupled_coordinates_function>
2903-
<independent_coordinate_names> flexion</independent_coordinate_names>
2917+
<independent_coordinate_names>flexion</independent_coordinate_names>
29042918
<dependent_coordinate_name>auxprrud_auxdrfem_r3</dependent_coordinate_name>
29052919
<scale_factor>1</scale_factor>
29062920
</CoordinateCouplerConstraint>
2921+
<CoordinateCouplerConstraint name="auxprfem-auxprrud_coord_con">
2922+
<isDisabled>false</isDisabled>
2923+
<coupled_coordinates_function>
2924+
<SimmSpline>
2925+
<x> -0.436332 0 0.610865</x>
2926+
<y> -0.218166 0 0.3054325</y>
2927+
</SimmSpline>
2928+
</coupled_coordinates_function>
2929+
<independent_coordinate_names> deviation </independent_coordinate_names>
2930+
<dependent_coordinate_name>auxprfem-auxprrud_coord</dependent_coordinate_name>
2931+
<scale_factor>1</scale_factor>
2932+
</CoordinateCouplerConstraint>
29072933
<CoordinateCouplerConstraint name="auxdrfem_auxdrrud_r1_con">
29082934
<isDisabled>false</isDisabled>
29092935
<coupled_coordinates_function>
29102936
<SimmSpline>
29112937
<x> -0.436332 0 0.610865</x>
2912-
<y> -0.272708 0 0.305433</y>
2938+
<y> -0.218166 0 0.3054325</y>
29132939
</SimmSpline>
29142940
</coupled_coordinates_function>
29152941
<independent_coordinate_names> deviation</independent_coordinate_names>
@@ -3349,7 +3375,7 @@
33493375
<location> -0.00965 -0.00461 0.00733</location>
33503376
<body>triquetrum</body>
33513377
<range> 0 0</range>
3352-
<coordinate>deviation</coordinate>
3378+
<coordinate>auxprfem-auxprrud_coord</coordinate>
33533379
</ConditionalPathPoint>
33543380
<PathPoint name="EDM-P6">
33553381
<location> -0.00895 -0.00546 -0.02267</location>
@@ -3547,7 +3573,7 @@
35473573
<location> -0.01349 0.01118 0.02204</location>
35483574
<body>metacarpal2</body>
35493575
<range> 0 0</range>
3550-
<coordinate>deviation</coordinate>
3576+
<coordinate>auxprfem-auxprrud_coord</coordinate>
35513577
</ConditionalPathPoint>
35523578
<PathPoint name="ECRL-P6">
35533579
<location> -0.01108 -0.01106 0.02568</location>
@@ -4571,13 +4597,13 @@
45714597
<location> -0.01357 -0.0079 -0.01241</location>
45724598
<body>scaphoid</body>
45734599
<range> 0 0</range>
4574-
<coordinate>deviation</coordinate>
4600+
<coordinate>auxprfem-auxprrud_coord</coordinate>
45754601
</ConditionalPathPoint>
45764602
<ConditionalPathPoint name="EDCL-P6">
45774603
<location> -0.00192 -0.01151 0.00084</location>
45784604
<body>capitate</body>
45794605
<range> 0 0</range>
4580-
<coordinate>deviation</coordinate>
4606+
<coordinate>auxprfem-auxprrud_coord</coordinate>
45814607
</ConditionalPathPoint>
45824608
<ConditionalPathPoint name="EDCL-P7">
45834609
<location> -0.01096 -0.02472 -0.01035</location>
@@ -4687,7 +4713,7 @@
46874713
<location> -0.01286 -0.0042 -0.01106</location>
46884714
<body>scaphoid</body>
46894715
<range> 0 0</range>
4690-
<coordinate>deviation</coordinate>
4716+
<coordinate>auxprfem-auxprrud_coord</coordinate>
46914717
</ConditionalPathPoint>
46924718
<ConditionalPathPoint name="EDCR-P6">
46934719
<location> -0.00903 0.00837 -0.00741</location>
@@ -4797,7 +4823,7 @@
47974823
<location> -0.01198 -0.00332 -0.01283</location>
47984824
<body>scaphoid</body>
47994825
<range> 0 0</range>
4800-
<coordinate>deviation</coordinate>
4826+
<coordinate>auxprfem-auxprrud_coord</coordinate>
48014827
</ConditionalPathPoint>
48024828
<ConditionalPathPoint name="EDCM-P6">
48034829
<location> -0.01257 0.00659 -0.00208</location>
@@ -4907,13 +4933,13 @@
49074933
<location> -0.01359 -0.00761 -0.01108</location>
49084934
<body>scaphoid</body>
49094935
<range> 0 0</range>
4910-
<coordinate>deviation</coordinate>
4936+
<coordinate>auxprfem-auxprrud_coord</coordinate>
49114937
</ConditionalPathPoint>
49124938
<ConditionalPathPoint name="EDCI-P6">
49134939
<location> -0.00196 -0.00655 0.00232</location>
49144940
<body>capitate</body>
49154941
<range> 0 0</range>
4916-
<coordinate>deviation</coordinate>
4942+
<coordinate>auxprfem-auxprrud_coord</coordinate>
49174943
</ConditionalPathPoint>
49184944
<ConditionalPathPoint name="EDCI-P7">
49194945
<location> -0.01421 -0.01886 0.0078</location>

0 commit comments

Comments
 (0)