Hi, there.
I'm trying Moco track in hope of getting a better dynamic consistently matched IK result. I tried the exampleMOcoTrack m file, it worked well and seem to get the outputs I am looking for. However, when I changed the osim model, grf and marker trc files into mine, I got an error message saying "java.lang.RuntimeException: *80: The supplied path contains invalid characters." Could you please help provide some suggestion please?
Im not sure if I understand correctly. Does the optimised IK/marker results help reduce the residual force for the static optimisation?
Thanks in advence.
Best regards,
Linjie
Issue with runnning MocoTrack
- Nicholas Bianco
- Posts: 1047
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Issue with runnning MocoTrack
Hi Linjie,
The error message indicates that there are issues with your input files. Are you able to load your model and data in the GUI and visualize them?
Best,
Nick
The error message indicates that there are issues with your input files. Are you able to load your model and data in the GUI and visualize them?
Best,
Nick
- Linjie Wang
- Posts: 53
- Joined: Wed Sep 30, 2015 1:06 am
Re: Issue with runnning MocoTrack
Hi, Nick.
Thank you very much for your reply.
Yes, I can load my model and input data (marker trc file and GRF mot file) in the GUI and can successsfully run through IK and ID analysis. Not sure if the problem was caused by the model conversion from OpenSim 3.3 to OpenSim 4.4? Just tried the conversion tool built in OpenSim 4.4 and then run the MocoTrack script, but the error message persists.
Best regards,
Linjie
Thank you very much for your reply.
Yes, I can load my model and input data (marker trc file and GRF mot file) in the GUI and can successsfully run through IK and ID analysis. Not sure if the problem was caused by the model conversion from OpenSim 3.3 to OpenSim 4.4? Just tried the conversion tool built in OpenSim 4.4 and then run the MocoTrack script, but the error message persists.
Best regards,
Linjie
- Nicholas Bianco
- Posts: 1047
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Issue with runnning MocoTrack
Hi Linjie,
Could you provide the script that is failing and the line it is failing at?
Best,
Nick
Could you provide the script that is failing and the line it is failing at?
Best,
Nick
- Linjie Wang
- Posts: 53
- Joined: Wed Sep 30, 2015 1:06 am
Re: Issue with runnning MocoTrack
Hi, Nick.
The script failed at the line of sovling 'solution = track.solveAndVisualize();'. The message was in the attached. I will attach the input data files and the model (too large to send through in this forum, but its just Rajagopal model with different marker names) to you via the email as well. Thanks a lot for your time and kind help.
Best regards,
Linjie
The script failed at the line of sovling 'solution = track.solveAndVisualize();'. The message was in the attached. I will attach the input data files and the model (too large to send through in this forum, but its just Rajagopal model with different marker names) to you via the email as well. Thanks a lot for your time and kind help.
Best regards,
Linjie
- Attachments
-
- error_message_moco_track_test.png (19.2 KiB) Viewed 6868 times
-
- grf_walk_RajagopalModel.xml
- (2.13 KiB) Downloaded 450 times
-
- Matlab_script.txt
- (12.52 KiB) Downloaded 449 times
- Nicholas Bianco
- Posts: 1047
- Joined: Thu Oct 04, 2012 8:09 pm
Re: Issue with runnning MocoTrack
Hi Linjie,
You are receiving that error because one of the filepaths, either in your model or script, has an invalid (e.g., non-unicode) character. I recommend moving all needed files into one directory and remove absolute paths one by one until you find the culprit.
-Nick
You are receiving that error because one of the filepaths, either in your model or script, has an invalid (e.g., non-unicode) character. I recommend moving all needed files into one directory and remove absolute paths one by one until you find the culprit.
-Nick
- Linjie Wang
- Posts: 53
- Joined: Wed Sep 30, 2015 1:06 am
Re: Issue with runnning MocoTrack
Hi, Nick.
Thanks for your suggestion. But the error was there when I had already put all needed files in the same directory. If I am correct, I didn't use absolute paths in those files just as you did for the example files. I've also tried searching invalid characters in the model, input and the matlab moco track files by using Notepad++ ('Find Non-ASCII characters (128-255)'), but unfortunately, couldn't spot it at least by far. I wonder if you have other testing advice. Thanks in advance.
Best regards,
Linjie
Thanks for your suggestion. But the error was there when I had already put all needed files in the same directory. If I am correct, I didn't use absolute paths in those files just as you did for the example files. I've also tried searching invalid characters in the model, input and the matlab moco track files by using Notepad++ ('Find Non-ASCII characters (128-255)'), but unfortunately, couldn't spot it at least by far. I wonder if you have other testing advice. Thanks in advance.
Best regards,
Linjie
- Linjie Wang
- Posts: 53
- Joined: Wed Sep 30, 2015 1:06 am
Re: Issue with runnning MocoTrack
Hi, Nick.
Culprit was found! In my marker file, some unused markers had their names with initial character '*'.
Many thanks,
Linjie
Culprit was found! In my marker file, some unused markers had their names with initial character '*'.
Many thanks,
Linjie