Page 1 of 1

Error: No constructor 'org.opensim.modeling.Body' with matching signature found.

Posted: Wed Apr 07, 2021 10:59 am
by fcy19971208
Hello, this error message was shown when I am constructing a Body using the Body constructor which worked in other scripts, very strange.
capture2.PNG
capture2.PNG (6.94 KiB) Viewed 213 times

Re: Error: No constructor 'org.opensim.modeling.Body' with matching signature found.

Posted: Wed Apr 07, 2021 11:27 am
by tkuchida
The method you are calling can be found in the API documentation here: https://simtk.org/api_docs/opensim/api_ ... c19326e7c0. You should ensure that each argument is of the appropriate type. It might be helpful to use the default constructor instead (Cuff = Body()) and set the properties one-by-one to find out which one is causing the issue.

Re: Error: No constructor 'org.opensim.modeling.Body' with matching signature found.

Posted: Wed Apr 28, 2021 1:21 pm
by fcy19971208
Thank you very much Uchida, the problem was solved. Have a nice one!