Loading Knee Grand Challenge File from Anybody GitHub

Hi everyone,

I tried loading the Knee Grand Challenge file from the Anybody GitHub repository but encountered the following error:

Constructing model tree...
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(69)  :   Patella.scaling_message_Right_Patella  :  Custom scaling for 'Right.Patella' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(84)  :   Shank.scaling_message_Right_Shank  :  Custom scaling for 'Right.Shank' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(99)  :   Thigh.scaling_message_Right_Thigh  :  Custom scaling for 'Right.Thigh' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
ERROR(SCR.PRS9) :   Interface.any(125)  :   'HipJointRef'  :  Unresolved object
Model loading skipped

Does anyone know how to resolve this issue? Any help would be greatly appreciated!

Thanks in advance!
Parisa

i remember having similar problems. I don't recall exactly what i changed, but make sure you have the right version of repository for the gc model you want.

here's the scaling that I'm using (In settings_custome.any)

#ifndef BM_SCALING
//#define BM_SCALING CONST_SCALING_STANDARD
//#define BM_SCALING CONST_SCALING_LENGTHMASSFAT
#define BM_SCALING CONST_SCALING_UNIFORM
#endif
#ifndef BM_SCALING_ANTHRO_FILE
//#path BM_SCALING_ANTHRO_FILE "Input/AnyMan/AnyMan.any"
#path BM_SCALING_ANTHRO_FILE "AnyMan/AnyManUniform.any"
#endif

and this section in same file:
#define DEF_CUSTOM_SCALING_LEVEL_RIGHT_THIGH "RBF"
#define DEF_CUSTOM_SCALING_LEVEL_LEFT_THIGH "RBF"
#define DEF_CUSTOM_SCALING_LEVEL_RIGHT_SHANK "STL"
#define DEF_CUSTOM_SCALING_LEVEL_LEFT_SHANK "STL"
#define DEF_CUSTOM_SCALING_LEVEL_RIGHT_PATELLA "STL"
#define DEF_CUSTOM_SCALING_LEVEL_LEFT_PATELLA "STL"

Hi,

You would need to add a couple of lines in CustomSegments.any (and maybe check that the code looks the same):

I believe this has been fixed, but not merged into the main branch just yet.

Kind regards,
Pavel

Hi Pavel,

thank you for your reply.
I’ve made the changes, but I’m now encountering another error:

WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(69)  :   Patella.scaling_message_Right_Patella  :  Custom scaling for 'Right.Patella' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(84)  :   Shank.scaling_message_Right_Shank  :  Custom scaling for 'Right.Shank' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(99)  :   Thigh.scaling_message_Right_Thigh  :  Custom scaling for 'Right.Thigh' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(247)  :   Patella.scaling_message_Left_Patella  :  Custom scaling for Left.Patella' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(262)  :   Shank.scaling_message_Left_Shank  :  Custom scaling for 'Left.Shank' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
WARNING(OBJ.MODELDEF1) :   ScalingCustom.any(276)  :   Thigh.scaling_message_Left_Thigh  :  Custom scaling for 'Left.Thigh' segment is used! Please specify a scaling law should an 'Unresolved object' error occur
ERROR(SCR.PRS9) :   CustomMuscles.any(11)  :   'MusPar'  :  Unresolved object

Could you please advise on how to resolve these warnings and the error?

Best regards,
Parisa

Hi Parisa,

It seems like you are not on the correct branch of knee grand challenge GitHub repository. There is some ongoing work on the knee grand challenge models to update them to run with the latest AMMR.
There is a small note in the documentation on the GitHub page to use the dev branch for newer versions of AMMR. You can find the dev branch on this link.

Can you please try with the dev branch and see if it works?

Best regards,
Dave

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.