Skip to content

Commit 4cd55a1

Browse files
authored
Merge pull request #104 from AnyBody/SwMdlFix
SolidWorks model fix
2 parents 5a7a2cb + fcd3ff0 commit 4cd55a1

4 files changed

Lines changed: 47 additions & 102 deletions

File tree

-2.7 KB
Binary file not shown.

AnyExp4SOLIDWORKS/Downloads/HumanRefNodes.any

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,8 @@ AnyFolder Human_RefNodes =
5656
.ToeMedialContactNode.sRel)/3;
5757

5858
sRel = (.GroundJoint.sRel+.BigToeNode.sRel)/2;
59-
//sRel = .GroundJoint.sRel;
60-
// ARel = RotMat(ToeNode_Avg, .ToeMedialContactNode.sRel, .BigToeNode.sRel)
61-
// *RotMat(-pi/2,x)*RotMat(-pi/2,y);
62-
ARel = RotMat(ToeNode_Avg, .ExtensorHallucisLongus2Node.sRel, .ToeMedialContactNode.sRel)
63-
*RotMat(pi/2,x);
59+
ARel = RotMat(.HeelContactNodeLow.sRel, .BigToeNode.sRel, .ToeLateralContactNode.sRel)*RotMat(-pi/2,x);
60+
6461
AnyDrawRefFrame drw =
6562
{
6663
ScaleXYZ = 0.1 * {1,1,1};
@@ -81,11 +78,8 @@ AnyFolder Human_RefNodes =
8178
.ToeMedialContactNode.sRel)/3;
8279

8380
sRel = (.GroundJoint.sRel+.BigToeNode.sRel)/2;
84-
//sRel = .GroundJoint.sRel;
85-
// ARel = RotMat(ToeNode_Avg, .ToeMedialContactNode.sRel, .BigToeNode.sRel)
86-
// *RotMat(pi/2,x)*RotMat(pi/2,y);
87-
ARel = RotMat(ToeNode_Avg, .ExtensorHallucisLongus2Node.sRel, .ToeMedialContactNode.sRel)
88-
*RotMat(-pi/2,x);
81+
ARel = RotMat(.HeelContactNodeLow.sRel, .BigToeNode.sRel, .ToeLateralContactNode.sRel)*RotMat(pi/2,x);
82+
8983
AnyDrawRefFrame drw =
9084
{
9185
ScaleXYZ = 0.1 * {1,1,1};

AnyExp4SOLIDWORKS/Downloads/JointsAndDrivers.any

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,23 +114,20 @@ AnyFolder Drivers =
114114
{
115115
AnyKinMeasureOrg &ref1 =Main.HumanModel.BodyModel.Interface.Left.SternoClavicularProtraction;
116116
AnyKinMeasureOrg &ref2 =Main.HumanModel.BodyModel.Interface.Left.SternoClavicularElevation;
117-
AnyKinMeasureOrg &ref3 =Main.HumanModel.BodyModel.Interface.Left.SternoClavicularAxialRotation;
118117

119118
DriverPos = pi/180*
120119
{
121120
.JntPos.Left.SternoClavicularProtraction,
122-
.JntPos.Left.SternoClavicularElevation,
123-
.JntPos.Left.SternoClavicularAxialRotation
121+
.JntPos.Left.SternoClavicularElevation
124122
};
125123

126124
DriverVel = pi/180*
127125
{
128126
.JntVel.Left.SternoClavicularProtraction,
129-
.JntVel.Left.SternoClavicularElevation,
130-
.JntVel.Left.SternoClavicularAxialRotation
127+
.JntVel.Left.SternoClavicularElevation
131128
};
132129

133-
Reaction.Type = {Off,Off,Off};
130+
Reaction.Type = {Off,Off};
134131
};
135132
#endif
136133

@@ -140,20 +137,17 @@ AnyFolder Drivers =
140137
{
141138
AnyKinMeasureOrg &ref1 =Main.HumanModel.BodyModel.Interface.Right.SternoClavicularProtraction;
142139
AnyKinMeasureOrg &ref2 =Main.HumanModel.BodyModel.Interface.Right.SternoClavicularElevation;
143-
AnyKinMeasureOrg &ref3 =Main.HumanModel.BodyModel.Interface.Right.SternoClavicularAxialRotation;
144140
DriverPos = pi/180*
145141
{
146142
.JntPos.Right.SternoClavicularProtraction,
147-
.JntPos.Right.SternoClavicularElevation,
148-
.JntPos.Right.SternoClavicularAxialRotation
143+
.JntPos.Right.SternoClavicularElevation
149144
};
150145
DriverVel = pi/180*
151146
{
152147
.JntVel.Right.SternoClavicularProtraction,
153-
.JntVel.Right.SternoClavicularElevation,
154-
.JntVel.Right.SternoClavicularAxialRotation
148+
.JntVel.Right.SternoClavicularElevation
155149
};
156-
Reaction.Type = {Off,Off,Off};
150+
Reaction.Type = {Off,Off};
157151
};
158152
#endif
159153

AnyExp4SOLIDWORKS/Downloads/Mannequin.any

Lines changed: 37 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ AnyFolder Mannequin = {
44

55
AnyFolder Posture = {
66
//This controls the position of the pelvi wrt. to the global reference frame
7-
AnyVar PelvisPosX = -1.25;
8-
AnyVar PelvisPosY = 1.1 ;
7+
AnyVar PelvisPosX=-1.046;
8+
AnyVar PelvisPosY=1.06;
99
AnyVar PelvisPosZ=0;
1010

1111
//This controls the rotation of the pelvis wrt. to the global reference frame
@@ -15,38 +15,38 @@ AnyFolder Mannequin = {
1515

1616
// These variables control the rotation of the thorax wrt the
1717
// pelvis
18-
AnyVar PelvisThoraxExtension = -10;
18+
AnyVar PelvisThoraxExtension=0;
1919
AnyVar PelvisThoraxLateralBending=0;
2020
AnyVar PelvisThoraxRotation=0;
2121

2222
AnyVar NeckExtension=0;
23-
AnyVar NeckLateralBending=0;
24-
AnyVar NeckRotation=0;
23+
AnyVar NeckLateralBending=0; // not used when neck is switched off
24+
AnyVar NeckRotation=0; // not used when neck is switched off
2525

2626
AnyFolder Right = {
2727
//Arm
2828
AnyVar SternoClavicularProtraction=-23; //This value is not used for initial position
2929
AnyVar SternoClavicularElevation=11.5; //This value is not used for initial position
3030
AnyVar SternoClavicularAxialRotation=-20; //This value is not used for initial position
3131

32-
AnyVar GlenohumeralFlexion = 30;
33-
AnyVar GlenohumeralAbduction = 5;
32+
AnyVar GlenohumeralFlexion =-0;
33+
AnyVar GlenohumeralAbduction = 10;
3434
AnyVar GlenohumeralExternalRotation = 0;
3535

36-
AnyVar ElbowFlexion = 90;
37-
AnyVar ElbowPronation = 10;
36+
AnyVar ElbowFlexion = 110;
37+
AnyVar ElbowPronation = -20.0;
3838

3939
AnyVar WristFlexion =0;
4040
AnyVar WristAbduction =0;
4141

4242
//Leg
43-
AnyVar HipFlexion = 30;
44-
AnyVar HipAbduction = 2;
43+
AnyVar HipFlexion = 0.0;
44+
AnyVar HipAbduction = 5.0;
4545
AnyVar HipExternalRotation = 0.0;
4646

47-
AnyVar KneeFlexion = 60;
47+
AnyVar KneeFlexion = 0.0;
4848

49-
AnyVar AnklePlantarFlexion = 40;
49+
AnyVar AnklePlantarFlexion =0.0;
5050
AnyVar SubTalarEversion =0.0;
5151

5252
//Detail Hand
@@ -193,39 +193,6 @@ AnyFolder Mannequin = {
193193

194194
AnyVar AnklePlantarFlexion =0.0;
195195
AnyVar SubTalarEversion =0.0;
196-
197-
//Detail Hand
198-
AnyFolder Finger1 ={
199-
AnyVar CMCDeviation=0;
200-
AnyVar CMCFlexion=0;
201-
AnyVar MCPFlexion= 0;
202-
AnyVar MCPDeviation= 0;
203-
AnyVar DIPFlexion=0;
204-
};
205-
206-
AnyFolder Finger2 ={
207-
AnyVar MCPFlexion=0;
208-
AnyVar PIPFlexion=0;
209-
AnyVar DIPFlexion=0;
210-
};
211-
212-
AnyFolder Finger3 ={
213-
AnyVar MCPFlexion=0;
214-
AnyVar PIPFlexion=0;
215-
AnyVar DIPFlexion=0;
216-
};
217-
218-
AnyFolder Finger4 ={
219-
AnyVar MCPFlexion=0;
220-
AnyVar PIPFlexion=0;
221-
AnyVar DIPFlexion=0;
222-
};
223-
224-
AnyFolder Finger5 ={
225-
AnyVar MCPFlexion=0;
226-
AnyVar PIPFlexion=0;
227-
AnyVar DIPFlexion=0;
228-
};
229196

230197
};
231198

@@ -258,40 +225,30 @@ AnyFolder Mannequin = {
258225
AnyVar AnklePlantarFlexion = .Right.AnklePlantarFlexion ;
259226
AnyVar SubTalarEversion =.Right.SubTalarEversion;
260227

261-
//Detail Hand
262-
AnyFolder Finger1 ={
263-
AnyVar CMCDeviation=0;
264-
AnyVar CMCFlexion=0;
265-
AnyVar MCPFlexion= 0;
266-
AnyVar MCPDeviation= 0;
267-
AnyVar DIPFlexion=0;
268-
};
269-
270-
AnyFolder Finger2 ={
271-
AnyVar MCPFlexion=0;
272-
AnyVar PIPFlexion=0;
273-
AnyVar DIPFlexion=0;
274-
};
275-
276-
AnyFolder Finger3 ={
277-
AnyVar MCPFlexion=0;
278-
AnyVar PIPFlexion=0;
279-
AnyVar DIPFlexion=0;
280-
};
281-
282-
AnyFolder Finger4 ={
283-
AnyVar MCPFlexion=0;
284-
AnyVar PIPFlexion=0;
285-
AnyVar DIPFlexion=0;
286-
};
287-
288-
AnyFolder Finger5 ={
289-
AnyVar MCPFlexion=0;
290-
AnyVar PIPFlexion=0;
291-
AnyVar DIPFlexion=0;
292-
};
293-
294228
};
295229
};
296230

297-
};
231+
AnyFolder Load = {
232+
AnyVec3 TopVertebra = {0.000, 0.000, 0.000};
233+
234+
AnyFolder Right = {
235+
AnyVec3 Shoulder = {0.000, 0.000, 0.000};
236+
AnyVec3 Elbow = {0.000, 0.000, 0.000};
237+
AnyVec3 Hand = {0.000, 0.000, 0.000};
238+
AnyVec3 Hip = {0.000, 0.000, 0.000};
239+
AnyVec3 Knee = {0.000, 0.000, 0.000};
240+
AnyVec3 Ankle = {0.000, 0.000, 0.000};
241+
};
242+
AnyFolder Left = {
243+
AnyVec3 Shoulder = {0.000, 0.000, 0.000};
244+
AnyVec3 Elbow = {0.000, 0.000, 0.000};
245+
AnyVec3 Hand = {0.000, 0.000, 0.000};
246+
AnyVec3 Hip = {0.000, 0.000, 0.000};
247+
AnyVec3 Knee = {0.000, 0.000, 0.000};
248+
AnyVec3 Ankle = {0.000, 0.000, 0.000};
249+
};
250+
}; // Loads
251+
};
252+
253+
254+

0 commit comments

Comments
 (0)