Hi,
I have downloaded a repository from github for treadmill movements. When I load the model, it is said that the libdef file can not be found. So, I located the libdef file in c:\newfolder\libdef.any, and I could open the libdef file. But, the location of libdef was changed in all other anybody files in other folders. What I need to know is whether there is only one version of libdef that we can use for all folders? Where should I put the libdef file? I have the same issue with output file. Any idea how I can fix this issues?
Hi,
Normally, when you download a model from GitHub, the model expects to find the body model locally in your system. The location of the body model in your system is determined through the libdef file.
When you open AnyBody, you can install a working copy of the AMMR in your system (see the video at this link). Once you have your working copy of the AMMR, you need to explore to the folder containing AMMR: Click on the circled link:
Once you click on the link, it will open the file explorer to the AMMR folder and there you can see a libdef.any file. Copy the path of this folder where you have the libdef file. This is the libdef file that you must point all the models to. So, now you need to go to the treadmill model and find the libdef file in the topmost folder for the model. Now go one more level up, and make a new libdef.any file here with just a single line:
#include "<Path to AMMR>/libdef.any"
Please replace with the path to the AMMR folder that I mentioned above.
This should fix it. Normally, you shouldn't need to change any other thing in the model.
Best regards,
Dave