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

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Chongyuan Feng
Posts: 4
Joined: Fri Mar 01, 2019 8:16 pm

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

Post by Chongyuan Feng » Wed Apr 07, 2021 10:59 am

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 209 times

Tags:

User avatar
Thomas Uchida
Posts: 1793
Joined: Wed May 16, 2012 11:40 am

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

Post by Thomas Uchida » Wed Apr 07, 2021 11:27 am

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.

User avatar
Chongyuan Feng
Posts: 4
Joined: Fri Mar 01, 2019 8:16 pm

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

Post by Chongyuan Feng » Wed Apr 28, 2021 1:21 pm

Thank you very much Uchida, the problem was solved. Have a nice one!

POST REPLY