Skip to content

Commit af77888

Browse files
JacobAdamsenJacob Hilmar Adamsen
andauthored
Fix models to match updated AMMR4 (#68)
* Fix models to fit updated AMMR4 * Updated download folder with changes --------- Co-authored-by: Jacob Hilmar Adamsen <jha@anybodytech.com>
1 parent b353bb1 commit af77888

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

-2.44 KB
Binary file not shown.

Finite_element_analysis/Snippets/Lesson1/Model/JointsAndDrivers.any

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,10 @@ AnyFolder Drivers = {
181181
//Constrain the feet to be symmetrical about the xy plane
182182
AnyKinEqSimpleDriver FeetXDriver = {
183183
AnyKinCoM CoM = {
184-
AnySeg &rf = Main.Model.BodyModel.Right.Leg.Seg.Foot;
185-
AnySeg &ff = Main.Model.BodyModel.Left.Leg.Seg.Foot;
184+
RefFrames = arrcat(
185+
ObjSearch("Main.Model.BodyModel.*.Leg.Seg.Foot","AnySeg"),
186+
ObjSearch("Main.Model.BodyModel.*.Leg.Seg.Foot.*","AnySeg")
187+
);
186188
};
187189
MeasureOrganizer = {2}; // Only the z direction
188190
DriverPos = {0};
@@ -394,7 +396,7 @@ AnyFolder Drivers = {
394396
AnyKinEq RToeGroundConstraint ={
395397
AnyKinLinear ToePos = {
396398
AnyFixedRefFrame &Ground = Main.Model.EnvironmentModel.GlobalRef;
397-
AnyRefNode &Ball = Main.Model.BodyModel.Right.Leg.Seg.Foot.ToeJoint;
399+
AnyRefNode &Ball = Main.Model.BodyModel.Right.Leg.Seg.Foot.Metatarsal1.ToeJoint;
398400
};
399401
MeasureOrganizer = {1}; // Only the y coordinate
400402
Reaction.Type={Off};
@@ -403,7 +405,7 @@ AnyFolder Drivers = {
403405
AnyKinEqSimpleDriver RHeelGroundConstraint ={
404406
AnyKinLinear HeelPos = {
405407
AnyFixedRefFrame &Ground = Main.Model.EnvironmentModel.GlobalRef;
406-
AnyRefNode &Ball = Main.Model.BodyModel.Right.Leg.Seg.Foot.HeelJoint;
408+
AnyRefNode &Ball = Main.Model.BodyModel.Right.Leg.Seg.Foot.Calcaneus.HeelContactNodeLow;
407409
};
408410
MeasureOrganizer = {1}; // Only the y coordinate
409411
DriverPos = {0.0};
@@ -415,7 +417,7 @@ AnyFolder Drivers = {
415417
AnyKinEq LToeGroundConstraint ={
416418
AnyKinLinear ToePos = {
417419
AnyFixedRefFrame &Ground = Main.Model.EnvironmentModel.GlobalRef;
418-
AnyRefNode &Ball = Main.Model.BodyModel.Left.Leg.Seg.Foot.ToeJoint;
420+
AnyRefNode &Ball = Main.Model.BodyModel.Left.Leg.Seg.Foot.Metatarsal1.ToeJoint;
419421
};
420422
MeasureOrganizer = {1}; // Only the y coordinate
421423
Reaction.Type={Off};
@@ -424,7 +426,7 @@ AnyFolder Drivers = {
424426
AnyKinEqSimpleDriver LHeelGroundConstraint ={
425427
AnyKinLinear HeelPos = {
426428
AnyFixedRefFrame &Ground = Main.Model.EnvironmentModel.GlobalRef;
427-
AnyRefNode &Ball = Main.Model.BodyModel.Left.Leg.Seg.Foot.HeelJoint;
429+
AnyRefNode &Ball = Main.Model.BodyModel.Left.Leg.Seg.Foot.Calcaneus.HeelContactNodeLow;
428430
};
429431
MeasureOrganizer = {1}; // Only the y coordinate
430432
DriverPos = {0.0};

0 commit comments

Comments
 (0)