Page 1 of 1
ExpressionBasedCoordinateForce
Posted: Tue Sep 13, 2016 11:52 am
by jonmortensen
Hi everyone, I am having a problem with the ExpressionBasedCoordinateForce. When I try to add it to my model.osim file I get the error:
'ExpressionBasedCoordinateForce' is not a registered Object!
Object type ExpressionBasedCoordinateForce not recognized
Is this object no longer working for OpenSim? Any help would be great.
Re: ExpressionBasedCoordinateForce
Posted: Tue Sep 13, 2016 11:25 pm
by mitkof6
Hi,
If you are adding this through the C++ API, then you need to register the force so it can be recognized by OpenSim.
Code: Select all
OpenSim::Object::registerType(OpenSim::ExpressionBasedCoordinateForce());
Best
Re: ExpressionBasedCoordinateForce
Posted: Wed Sep 14, 2016 10:42 am
by jonmortensen
Is there a way to do this just by editing the xml file? I would like to add it straight into my model and run it in the GUI.
Re: ExpressionBasedCoordinateForce
Posted: Thu Sep 15, 2016 1:00 am
by mitkof6
I am not sure if it is possible, through GUI. Maybe through scripting. If you want to use it through the GUI maybe you can implement a very simple plugin that registers the ExpressionBasedCoordinateForce. See the examples in the sdk folder.
Best