Search found 3 matches

by Daan de Kanter
Mon Oct 26, 2020 10:20 am
Forum: OpenSim
Topic: Adding an accelerometer to the femur
Replies: 7
Views: 853

Re: Adding an accelerometer to the femur

Dear Wan, You can model an accelerometer as follows: Femur = osimModel.getBodySet.get('Femur'); Accelero = PhysicalOffsetFrame(); Accelero.setName('FirstAccelero'); Accelero.setParentFrame(Femur); Then use the following code to obtain the output: IMU1linacc = IMU1.getLinearAccelerationInGround(state...
by Daan de Kanter
Tue Jul 21, 2020 2:27 am
Forum: OpenSim
Topic: MATLAB crash when computing forward dynamics
Replies: 10
Views: 1377

Re: MATLAB crash when computing forward dynamics

Hi Elena and Pavlos, Nice to hear that it works for you too Elena! I, unfortunately, don't have experience with running a simulation using Simulink and the OpenSim/Simbody functions. Currently, I am scripting everything in the MATLAB environment and this so far suits my goal. Pavlos, I am curious ho...
by Daan de Kanter
Mon Jul 20, 2020 12:50 am
Forum: OpenSim
Topic: MATLAB crash when computing forward dynamics
Replies: 10
Views: 1377

Re: MATLAB crash when computing forward dynamics

Hi Elena, I was experiencing the same problem when trying to run a simulation. I got the error that: "MATLAB has encountered an internal problem and needs to close." I resolved the error by placing code of the manager, and thus the simulation step, not in a function but in my main .m file. If you ru...