Hi all,
I am trying to run the following function from the dynamic walking starter
status = CallForwardTool(modelDirectory, ...
modelFile, resultsDirectory, initialStatesFile). I get the following error on running it. Could you please suggest any help!
thanks!
best,
jan
Calling Foward tool function in Dynamic walker starter
- Jan Thomas
- Posts: 23
- Joined: Mon Aug 10, 2015 8:39 am
Calling Foward tool function in Dynamic walker starter
- Attachments
-
- Callforward.JPG (75.5 KiB) Viewed 566 times
- Ayman Habib
- Posts: 2255
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Calling Foward tool function in Dynamic walker starter
Hi Jan,
The likely culprit is using full/absolute pathname in the xml file where a relative path name is expected. Usually you don'tneed to specify full path if all the files are in the same folder as the setup file.
Hope this helps,
-Ayman
The likely culprit is using full/absolute pathname in the xml file where a relative path name is expected. Usually you don'tneed to specify full path if all the files are in the same folder as the setup file.
Hope this helps,
-Ayman
- Jan Thomas
- Posts: 23
- Joined: Mon Aug 10, 2015 8:39 am
Re: Calling Foward tool function in Dynamic walker starter
Dear Ayman,
Thanks for the quick reply, I tried using the filenames instead of the absolute path but I still get the error as below.
Thanks again!
Best,
Jan
Thanks for the quick reply, I tried using the filenames instead of the absolute path but I still get the error as below.
Thanks again!
Best,
Jan
- Attachments
-
- forwardcall.JPG (66.59 KiB) Viewed 546 times
-
- ferror.JPG (128.9 KiB) Viewed 546 times
- Thomas Uchida
- Posts: 1804
- Joined: Wed May 16, 2012 11:40 am
Re: Calling Foward tool function in Dynamic walker starter
The error message indicates that you are attempting to open a file called "UserFunctionsarm26.osim". The line armModel = Model([modelDirectory, modelFile]); concatenates the strings you provide as the modelDirectory and modelFile arguments, so assuming you have a directory named "UserFunctions" under the directory from which you're calling this function, you probably just need to add a "/" at the end of the first argument:
status = CallForwardTool('UserFunctions/', 'arm26.osim', etc.
- Jan Thomas
- Posts: 23
- Joined: Mon Aug 10, 2015 8:39 am
Re: Calling Foward tool function in Dynamic walker starter
Dear Tom,
I used the absolute path path the 1,3 input argument and followed your advice, its working now! Thanks for the help!
Best,
Jan
I used the absolute path path the 1,3 input argument and followed your advice, its working now! Thanks for the help!
![Smile :)](./images/smilies/icon_e_smile.gif)
Best,
Jan