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.
ExpressionBasedCoordinateForce
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: ExpressionBasedCoordinateForce
Hi,
If you are adding this through the C++ API, then you need to register the force so it can be recognized by OpenSim.
Best
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());
- Jonathan Mortensen
- Posts: 32
- Joined: Wed Jul 06, 2016 1:33 pm
Re: ExpressionBasedCoordinateForce
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.
- Dimitar Stanev
- Posts: 1096
- Joined: Fri Jan 31, 2014 5:14 am
Re: ExpressionBasedCoordinateForce
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
Best