Page 1 of 1

Issue with runnning MocoTrack

Posted: Fri Jul 19, 2024 6:51 am
by wanglj6chris
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

Re: Issue with runnning MocoTrack

Posted: Fri Jul 19, 2024 1:46 pm
by nbianco
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

Re: Issue with runnning MocoTrack

Posted: Fri Jul 19, 2024 2:58 pm
by wanglj6chris
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

Re: Issue with runnning MocoTrack

Posted: Fri Jul 19, 2024 4:21 pm
by nbianco
Hi Linjie,

Could you provide the script that is failing and the line it is failing at?

Best,
Nick

Re: Issue with runnning MocoTrack

Posted: Sun Jul 21, 2024 7:57 am
by wanglj6chris
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

Re: Issue with runnning MocoTrack

Posted: Mon Jul 22, 2024 1:30 pm
by nbianco
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

Re: Issue with runnning MocoTrack

Posted: Wed Jul 24, 2024 2:22 am
by wanglj6chris
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

Re: Issue with runnning MocoTrack

Posted: Wed Jul 24, 2024 3:12 am
by wanglj6chris
Hi, Nick.

Culprit was found! In my marker file, some unused markers had their names with initial character '*'.

Many thanks,
Linjie