i try to implement an integrator in MatLab with the following Code:
Code: Select all
numInt = model.getMultibodySystem();
numInt.setAccuracy = 0.0001;
Hope you can help me,
Robert
Code: Select all
numInt = model.getMultibodySystem();
numInt.setAccuracy = 0.0001;
Code: Select all
myIntegrator.setAccuracy(1e-6);
Code: Select all
SimTK::RungeKottaMersonIntegrator integrator(osimModel.getMultibodySystem());
integrator.setAccuracy(1.0e-4);
Manager manager(osimModel, integrator);
Code: Select all
import org.opensim.modeling.*
Code: Select all
import org.opensim.modeling.*
model = Model('myModel.osim');
manager = Manager(model); %constructs an integrator internally
manager.setIntegratorAccuracy(1e-6);
Code: Select all
manager = Manager(model);
The documentation doesn't indicate what type of integrator is built and I can't see a method that you can call from Matlab to find out, but the source code for Manager::Manager(Model& model) (https://github.com/opensim-org/opensim- ... er.cpp#L53) shows that a SimTK::RungeKuttaMersonIntegrator is constructed internally.do I know which integrator is taken now?
There's a setIntegrator() method on Manager, but the argument is a pointer to a SimTK::Integrator so I don't think that is possible from Matlab. If your work requires that you use a particular integrator, you could move to C++. You might be able to use one of Matlab's integrators as well (see the Dynamic Walking Challenge Example here: http://simtk-confluence.stanford.edu:80 ... Id=5113821), though I wouldn't recommend adding that complexity unless RungeKuttaMersonIntegrator is intolerable for some reason.Where can I see or maybe change that?