Page 1 of 1

Error when running Forward Dynamics analysis using command line

Posted: Tue Jul 07, 2020 3:44 pm
by xhua
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

Re: Error when running Forward Dynamics analysis using command line

Posted: Wed Jul 08, 2020 8:59 am
by aymanh
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

Re: Error when running Forward Dynamics analysis using command line

Posted: Wed Jul 08, 2020 12:10 pm
by xhua
Hi, Ayman

Thank you very much for your kindly reply.

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

Xijin