Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(reference): Leg Improvements reference branch #791

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
170d442
Revert "Achilles tendon wrapping 2 (#788)"
melund Apr 27, 2023
849c838
Merge branch 'master-ammr-2.5' into no-leg-improvements
melund Apr 27, 2023
a4fc228
Merge branch 'master-ammr-2.5' into no-leg-improvements
melund May 8, 2023
3c75c85
Merge branch 'master-ammr-2.5' into no-leg-improvements
melund May 22, 2023
5f496a1
Merge remote-tracking branch 'ammr/master-ammr-2.5' into no-leg-impro…
melund May 22, 2023
09c77a6
Merge remote-tracking branch 'origin/master-ammr-2.5' into no-leg-imp…
melund Jun 8, 2023
f710203
Merge branch 'master-ammr-2.5' into no-leg-improvements
melund Jun 9, 2023
0bf7ae2
Merge remote-tracking branch 'origin/master-ammr-2.5' into no-leg-imp…
melund Jun 13, 2023
ea8b526
Merge commit '6f2970d06ef17757e9f6f83212d2d719506927df' into no-leg-i…
melund Jul 10, 2023
cf8cf70
Merge commit '15add9508a9f318f416e7c2df59232bd9eb2c7a4' into no-leg-i…
melund Jul 11, 2023
a96595c
Merge commit '8d9e99e315f516f131dd4e3856d0b35f753322bb' into no-leg-i…
melund Jul 11, 2023
da5e731
Merge commit 'a6d59b09a91dfb95e12ca07f821e68e114595a5e' into no-leg-i…
melund Aug 14, 2023
68ef73c
Merge branch 'master' into no-leg-improvements
melund Aug 25, 2023
032008d
Merge remote-tracking branch 'origin/master' into no-leg-improvements
melund Sep 13, 2023
9f9dd6b
Merge remote-tracking branch 'origin/master' into no-leg-improvements
melund Oct 20, 2023
b7ec31f
Merge commit '5309d429e557e88cc282af7397c7a0e937c42a8f' into no-leg-i…
melund Oct 30, 2023
a78be97
Merge commit '908735df36ca6edf953b55dc3b97571929ce02ba' into no-leg-i…
melund Oct 30, 2023
cd51bad
Merge branch 'master' into no-leg-improvements
melund Nov 1, 2023
d654314
Merge branch 'master' into no-leg-improvements
melund Nov 10, 2023
972b868
Merge commit '947338de4e7f26511f3cbd6db1260f5082d37429' into no-leg-i…
melund Nov 15, 2023
a6b7246
Merge commit '609ffe05ca80c680711a29144336fadd31037e2e' into no-leg-i…
melund Jan 9, 2024
e8f3d1f
Merge commit '74db4e656708dd0f00637a96bd02b676a4f0a8ad' into no-leg-i…
melund Jan 9, 2024
3e906a1
Revert "Tlem foot fixes3 (#883)"
melund Jan 9, 2024
f8276ca
Remove achilles tendon wrapping which have sneak back to this branch
melund Jan 10, 2024
31afb46
Merge commit '48591304743a32abe370085c7d1c65b0c147f593' into no-leg-i…
melund Jan 10, 2024
1c68c1c
Merge branch 'master' into no-leg-improvements
melund Jun 17, 2024
d8ec5e1
Merge commit 'ed9d21f5d01a0c18a2371f0156d81629cd1550b8' into no-leg-i…
melund Jul 22, 2024
b3e3eb9
Merge remote-tracking branch 'origin/master' into no-leg-improvements
melund Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ Application/MocapExamples/Rehazenter-adult-walking-model/Output/*
*_[0-9][0-9][0-9][0-9].png
*.mp4
*_Preview.png
*).anymcr
*).txt

ffmpeg2pass-*.log
# pixi environments
.pixi

Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ OptX=OFF , OptY=OFF , OptZ=OFF,
WeightX=1.0,WeightY=1.0,WeightZ=1.0,
UseC3DWeightResiduals=ON
) = {
sRelOpt = {0.0135, 0.02, 0.00};
sRelOpt = {0.014, 0.02, 0.00};
};
#endif

Expand All @@ -270,7 +270,7 @@ OptX=OFF, OptY=OFF , OptZ=OFF,
WeightX=1.0,WeightY=1.0,WeightZ=1.0,
UseC3DWeightResiduals=ON
) = {
sRelOpt = {-0.015, 0.01, 0.0};
sRelOpt = {-0.025, 0.01, -0.0};
};
#endif

Expand Down Expand Up @@ -344,7 +344,7 @@ PlaceMarkerAt = MetatarsalJoint1Node,
OptX=OFF,OptY=OFF ,OptZ=OFF,
UseC3DWeightResiduals=ON
) = {
sRelOpt = {0.0135, 0.02, 0.00};
sRelOpt = {0.014, 0.02, 0.00};
};
#endif

Expand All @@ -357,7 +357,7 @@ OptX=OFF, OptY=OFF, OptZ=OFF,
WeightX=1.0,WeightY=1.0,WeightZ=1.0,
UseC3DWeightResiduals=ON
) = {
sRelOpt = {-0.015, 0.01, 0.0};
sRelOpt = {-0.025, 0.01, 0.0};
};
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Main = {
AnyVar BackRestHeadResRotZPos = 0; ///< Rotation of the head rest wrt the back rest
AnyVar GlobalLegRestRotZPos = 90; ///< Inclination of the leg rest
AnyVar GlobalBackRestRotZPos = 90; ///< Back rest inclination
AnyVar LegRestFootRestLinYPos = 0.1675; //< Position of the footrest along the leg rest
AnyVar LegRestFootRestLinYPos = 0.164; //< Position of the footrest along the leg rest
}; // DrvPos

/// Driver Velocities - angles are in degrees per second
Expand Down
14 changes: 6 additions & 8 deletions Body/AAUHuman/LegTLEM/Jnt.any
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//

#if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_
#if (TLEM_JOINT_TYPE_ANKLE != _JOINT_TYPE_USERDEFINED_)
#if (BM_JOINT_TYPE_ANKLE_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_ANKLE_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
AnyRevoluteJoint Ankle = {
Axis = z; //flexion extension
//Axis2 = x; //abduction adduction
Expand All @@ -20,7 +20,7 @@ AnyRevoluteJoint Ankle = {
};
#endif

#if (TLEM_JOINT_TYPE_SUBTALAR != _JOINT_TYPE_USERDEFINED_)
#if (BM_JOINT_TYPE_SUBTALAR_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_SUBTALAR_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
AnyRevoluteJoint SubTalar = {
//Axis1 = z; //flexion extension
Axis = z; //inversion eversion
Expand All @@ -35,9 +35,7 @@ AnyRevoluteJoint SubTalar = {
#endif
#endif

#if (TLEM_JOINT_TYPE_KNEE != _JOINT_TYPE_USERDEFINED_)


#if (BM_JOINT_TYPE_KNEE_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_KNEE_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
AnyRevoluteJoint Knee = {
Axis = z;
AnyRefNode &ThighNode = ..Seg.Thigh.KneeJoint;
Expand All @@ -50,7 +48,7 @@ AnyRevoluteJoint Knee = {

#endif

#if (TLEM_JOINT_TYPE_PATELLOFEMORAL != _JOINT_TYPE_USERDEFINED_)
#if (BM_JOINT_TYPE_PATELLOFEMORAL_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_PATELLOFEMORAL_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
AnyRevoluteJoint PatellaFemur = {
Axis = z;
AnyRefNode &ThighNode = ..Seg.Thigh.PatellaFemurJoint;
Expand All @@ -70,7 +68,7 @@ AnyRevoluteJoint PatellaFemur = {



#if (TLEM_JOINT_TYPE_PATELLATENDON != _JOINT_TYPE_USERDEFINED_)
#if (BM_JOINT_TYPE_PATELLATENDON_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_PATELLATENDON_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
AnyFolder KinematicMeasures = {
AnyKinPLine Patella = {
// These are the nodes that the measure refers to. The connection is regarded
Expand Down Expand Up @@ -187,7 +185,7 @@ AnyKinEqSimpleDriver PatellaMovement = {
//
#endif

#if (TLEM_JOINT_TYPE_HIP != _JOINT_TYPE_USERDEFINED_)
#if (BM_JOINT_TYPE_HIP_RIGHT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Right") | (BM_JOINT_TYPE_HIP_LEFT != _JOINT_TYPE_USERDEFINED_ & _LEFT_RIGHT_ == "Left")
// Defined with the femoral node first so reactions are reported in femur based reference frame.
AnySphericalJoint Hip = {
AnyRefNode &ThighNode = ..Seg.Thigh.HipJoint;
Expand Down
27 changes: 0 additions & 27 deletions Body/AAUHuman/LegTLEM/JointTypeDefinitions.any

This file was deleted.

4 changes: 1 addition & 3 deletions Body/AAUHuman/LegTLEM/Leg.root.any
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ Please find a description of the model in the seg.any file.
AnyRevoluteJoint &SubTalar = .Jnt.SubTalar;
#endif
#if BM_JOINT_TYPE_KNEE_RIGHT != _JOINT_TYPE_USERDEFINED_
AnyKinMeasure &Knee = .Jnt.Knee;
AnyRevoluteJoint &Knee = .Jnt.Knee;
#endif
AnySphericalJoint &Hip = .Jnt.Hip;

};

#include "JointTypeDefinitions.any"

// Definition of the leg segments
AnyFolder Seg = {
Expand Down
107 changes: 30 additions & 77 deletions Body/AAUHuman/LegTLEM/Mus.any
Original file line number Diff line number Diff line change
Expand Up @@ -18,131 +18,89 @@

#if BM_FOOT_MODEL == _FOOT_MODEL_DEFAULT_





AnyMuscleShortestPath SoleusMedialis1 = {
AnyMuscleViaPoint SoleusMedialis1 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis1Par;
AnyRefNode &Org = ..Seg.Shank.SoleusMedialis1Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis1Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine = {
StringMesh = 30;
AnyMatrix InitWrapPos = {
transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) ,
transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 )
};
InitWrapPosVecArr = {&InitWrapPos, None};
};
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath SoleusMedialis2 = {
AnyMuscleViaPoint SoleusMedialis2 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis2Par;
AnyRefNode &Org = ..Seg.Shank.SoleusMedialis2Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis2SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis2Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath SoleusMedialis3 = {
AnyMuscleViaPoint SoleusMedialis3 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusMedialis3Par;
AnyRefNode &Org = ..Seg.Shank.SoleusMedialis3Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusMedialis3SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusMedialis3Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath SoleusLateralis1 = {
AnyMuscleViaPoint SoleusLateralis1 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis1Par;
AnyRefNode &Org = ..Seg.Shank.SoleusLateralis1Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis1Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath SoleusLateralis2 = {
AnyMuscleViaPoint SoleusLateralis2 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis2Par;
AnyRefNode &Org = ..Seg.Shank.SoleusLateralis2Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis2SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis2Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath SoleusLateralis3 = {
AnyMuscleViaPoint SoleusLateralis3 = {
AnyMuscleModel &MusMdl = ..MuscleModels.SoleusLateralis3Par;
AnyRefNode &Org = ..Seg.Shank.SoleusLateralis3Node;
AnyRefNode &Via1 = ..Seg.Foot.SoleusLateralis3SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.SoleusLateralis3Node;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = .SoleusMedialis1.SPLine.InitWrapPosVecArr;
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};



AnyMuscleShortestPath GastrocnemiusLateralis1 = {
AnyMuscleModel &MusMdl = ..MuscleModels.GastrocnemiusLateralis1Par;
AnyRefNode &Org = ..Seg.Thigh.GastrocnemiusLateralis1Node;
AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
// AnyRefNode &Via1 = ..Seg.Thigh.GastrocnemiusLateralis1ViaNode;
// AnyRefNode &Via2 = ..Seg.Thigh.GastrocnemiusLateralis2ViaNode;
// AnyRefNode &Via3 = ..Seg.Thigh.GastrocnemiusLateralis3ViaNode;
// AnyRefNode &Via4 = ..Seg.Thigh.GastrocnemiusLateralis4ViaNode;
// AnyRefNode &Via5 = ..Seg.Thigh.GastrocnemiusLateralis5ViaNode;
// AnyRefNode &Via6 = ..Seg.Thigh.GastrocnemiusLateralis6ViaNode;
AnyRefNode &Via7 = ..Seg.Shank.GastrocnemiusLateralis7ViaNode;
AnyRefNode &Via8 = ..Seg.Shank.GastrocnemiusLateralis8ViaNode;
AnyRefNode &Via9 = ..Seg.Shank.GastrocnemiusLateralis9ViaNode;
AnyRefNode &Via10 =..Seg.Foot.GastrocnemiusLateralis1SuperiorNode;
AnyRefNode &Via10 = ..Seg.Shank.GastrocnemiusLateralis10ViaNode;
AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusLateralis1Node;
SPLine = {
StringMesh = 30;
AnyMatrix InitWrapPos1 = {
transf3D({1.1*.srf.Radius, ...Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) ,
};
AnyMatrix InitWrapPos2 = {
transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) ,
transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 )
};

InitWrapPosVecArr = {&InitWrapPos1,None,None,&InitWrapPos2, None};
InitWrapPosVecArr = {&InitWrapPos1,None,None, None, None};
};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

AnyMuscleShortestPath GastrocnemiusMedialis1 = {
AnyMuscleModel &MusMdl = ..MuscleModels.GastrocnemiusMedialis1Par;
AnyRefNode &Org = ..Seg.Thigh.GastrocnemiusMedialis1Node;
AnyRefNode &Via1 = ..Seg.Thigh.GastrocnemiusMedialis1ViaNode;
AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
// AnyRefNode &Via2 = ..Seg.Thigh.GastrocnemiusMedialis2ViaNode;
// AnyRefNode &Via3 = ..Seg.Thigh.GastrocnemiusMedialis3ViaNode;
AnyRefNode &Via4 = ..Seg.Shank.GastrocnemiusMedialis4ViaNode;
AnyRefNode &Via5 = ..Seg.Shank.GastrocnemiusMedialis5ViaNode;
AnyRefNode &Via6 = ..Seg.Shank.GastrocnemiusMedialis6ViaNode;
AnyRefNode &Via7 = ..Seg.Shank.GastrocnemiusMedialis7ViaNode;
AnyRefNode &Via8 =..Seg.Foot.GastrocnemiusMedialis1SuperiorNode;
AnyRefNode &Via8 = ..Seg.Shank.GastrocnemiusMedialis8ViaNode;
AnyRefNode &Via9 = ..Seg.Shank.GastrocnemiusMedialis9ViaNode;
AnyRefNode &Ins = ..Seg.Foot.GastrocnemiusMedialis1Node;
SPLine.StringMesh = 30;
SPLine.InitWrapPosVecArr = {None, &.GastrocnemiusLateralis1.SPLine.InitWrapPos1,None, None, None, &.GastrocnemiusLateralis1.SPLine.InitWrapPos2, None};
SPLine.InitWrapPosVecArr = {None, &.GastrocnemiusLateralis1.SPLine.InitWrapPos1,None, None, None, None, None, None};
viewMuscle = {#include "../DrawSettings/MusDrawSettings.any"};
};

Expand Down Expand Up @@ -1840,20 +1798,15 @@ AnyMuscleShortestPath Plantaris1 = {
AnyMuscleModel &MusMdl = ..MuscleModels.Plantaris1Par;
AnyRefNode &Org = ..Seg.Thigh.Plantaris1Node;
AnySurface &srf = ..Seg.Thigh.GastroWrapSurf.cyl;
AnySurface &srf1 = ..Seg.Shank.AchillesWrapping1.Cyl;
AnySurface &srf2 = ..Seg.Shank.AchillesWrapping2.Cyl;
AnyRefNode &Via1 =..Seg.Foot.Plantaris1SuperiorNode;
AnyRefNode &Ins = ..Seg.Foot.Plantaris1Node;
SPLine = {
StringMesh = 30;
SPLine = {
AnyMatrix InitWrapPos = {
transf3D({1.1*.srf.Radius, ...Sign*1.1*.srf.Radius, 0.5*.srf.Length }, &.srf ) ,
transf3D({1.005*.srf1.Radius, 0, 0.5*.srf1.Length }, &.srf1 ) ,
transf3D({-1.005*.srf2.Radius, 0, 0.5*.srf2.Length }, &.srf2 )
};
InitWrapPosVecArr = {&InitWrapPos, None};
StringMesh = 90;
InitWrapPosVecArr = {&InitWrapPos};
};
viewMuscle = {#include "../drawSettings/MusDrawSettings.any"};
AnyRefNode &Ins = ..Seg.Foot.Plantaris1Node;
AnyDrawMuscle DrwMus = {#include "../DrawSettings/MusDrawSettings.any"};
};
#endif

Expand Down
Loading
Loading