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
Error when running Forward Dynamics analysis using command line
Error when running Forward Dynamics analysis using command line
- 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:
- Ayman Habib
- Posts: 2248
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Error when running Forward Dynamics analysis using command line
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.
Please try specifying the plugin as described above and let us know how it goes,
-Ayman
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
Hi, Ayman
Thank you very much for your kindly reply.
Yes, it is working well. The problem has been solved now.
Xijin
Thank you very much for your kindly reply.
Yes, it is working well. The problem has been solved now.
Xijin