Error when running Forward Dynamics analysis using command line

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Error when running Forward Dynamics analysis using command line

Post by Xijin Hua » Tue Jul 07, 2020 3:44 pm

Hi,

When I am using command line to run a forward dynamics analysis for a drop landing model (please see attached the *.osim model), I got a wrong simulation results, and got the following error information:

Object::newInstanceOfType(): object type 'ToyReflexController' is not a registered Object!
Object type ToyReflexController not recognized

I compared the simulation results between the command line and the GUI, and got different results.
Then when I disable the "ToyReflexController" in the GUI, then I got the same results with the command line.

This means the "ToyReflexController" can not be recognized and is not working when I run the model using command line, even I enable the "ToyReflexController" controller in the model.

Anyone has the same problem, or has any suggestions to solve the problem?

Please find attached the setup file (.xml file) and error information. Thanks

Xijin
Attachments
err.log
(140 Bytes) Downloaded 8 times
forward_setup.xml
(3.42 KiB) Downloaded 9 times
DropLandingModel.osim
(540.86 KiB) Downloaded 6 times

Tags:

User avatar
Ayman Habib
Posts: 2248
Joined: Fri Apr 01, 2005 12:24 pm

Re: Error when running Forward Dynamics analysis using command line

Post by Ayman Habib » Wed Jul 08, 2020 8:59 am

Hello,

The ToyReflexController is defined in a separate library that the GUI loads for convenience. The name of the library/plugin is osimExampleComponents. The command-line does not load the library by default but instead allows for loading plugins using the command line option

Code: Select all

-L
.

Please try specifying the plugin as described above and let us know how it goes,
-Ayman

User avatar
Xijin Hua
Posts: 29
Joined: Tue Feb 12, 2019 4:45 pm

Re: Error when running Forward Dynamics analysis using command line

Post by Xijin Hua » Wed Jul 08, 2020 12:10 pm

Hi, Ayman

Thank you very much for your kindly reply.

Yes, it is working well. The problem has been solved now.

Xijin

POST REPLY