Search found 164 matches

by Ton van den Bogert
Fri Jan 12, 2024 1:15 pm
Forum: OpenSim
Topic: error in inverse dynamics
Replies: 9
Views: 1383

Re: error in inverse dynamics

The spatial registration between raw motion capture data and force plate is correct, the center of pressure is exactly were it is expected and not 0.4 meters off. I plotted the horizontal position of COP and a few markers in the lower right leg and foot. Untitled.png The next thing to check would be...
by Ton van den Bogert
Fri Jan 12, 2024 9:00 am
Forum: OpenSim
Topic: error in inverse dynamics
Replies: 9
Views: 1383

Re: error in inverse dynamics

I plotted your data. Untitled.png The joint moment is close to 400 Nm at the peak, which is far too large indeed. The GRF at that time is 1000 N (which is normal), so this means that the center of pressure is about 0.4 meters from the ankle joint. Unless your subject is wearing skis, that is not pos...
by Ton van den Bogert
Tue Jan 09, 2024 11:07 am
Forum: OpenSim
Topic: GCVSplineSet errorVariance
Replies: 7
Views: 591

Re: GCVSplineSet errorVariance

Mohammadreza, You probably meant to say "the GCV mode can be implemented ... if I set the errorVariance to a negative value". If you know the variance, you can specify it as a positive value. And the larger that value, the more difference the spline allows between smoothed and raw data. So more smoo...
by Ton van den Bogert
Mon Jan 08, 2024 12:41 pm
Forum: OpenSim
Topic: Simulate accelerometer on tibia
Replies: 2
Views: 348

Re: Simulate accelerometer on tibia

Just be aware that an accelerometer does not measure acceleration. The marker acceleration is the acceleration expressed in the global reference frame. An accelerometer measures global acceleration but expresses it in a local reference frame (the sensor axes). And there is an effect of gravity. The ...
by Ton van den Bogert
Mon Jan 08, 2024 12:30 pm
Forum: OpenSim
Topic: GCVSplineSet errorVariance
Replies: 7
Views: 591

Re: GCVSplineSet errorVariance

I have a lot of experience with the GCV spline code (received it in 1985 on a 9-track tape!). The Fortran source code is still available on Netlib at https://www.netlib.org/gcv/gcvspl. After the first page or two, look at the "SUBROUTINE GCVSPL" with good technical information. There is an accompany...
by Ton van den Bogert
Tue Nov 21, 2023 3:12 pm
Forum: SCONE
Topic: GaitMeasure calculation
Replies: 6
Views: 587

Re: GaitMeasure calculation

That seems to work! The step velocity value is now consistent with the horizontal speed of the pelvis. Result = 0.667518 CompositeMeasure = 0.667518 Gait = 0 <- 100 * (0.0162636 > 0.05) step_velocity = 1.06426 step_count = 72 Effort = 0.618483 <- 0.1 * 6.18483 effort = 16107.5 distance = 34.943 DofL...
by Ton van den Bogert
Tue Nov 21, 2023 1:44 pm
Forum: SCONE
Topic: GaitMeasure calculation
Replies: 6
Views: 587

Re: GaitMeasure calculation

Thomas, Thanks, that is amazing that you were able to fix that so quickly. I will test it immediately if you give me install instructions. I agree that the GaitMeasure should become zero during the optimization so that in the end only the effort is minimized. About the font, yes, it's on Windows. My...
by Ton van den Bogert
Mon Nov 20, 2023 9:12 am
Forum: OpenSim
Topic: Knee joint definition issues in gait model
Replies: 2
Views: 352

Re: Knee joint definition issues in gait model

Johannes, The knee is a little different in this model, because the axis of rotation translates relative to the femur. This translation is coupled to the rotation (i.e. a function of knee_angle) and you can find this in translation1 (x) and translation2 (y). Translation y varies from -0.39 to -0.42 ...
by Ton van den Bogert
Mon Nov 13, 2023 2:30 pm
Forum: SCONE
Topic: GaitMeasure calculation
Replies: 6
Views: 587

GaitMeasure calculation

I am running a scenario where the simulation ends after a specified number of gait cycles (unless it falls sooner). It's about 34 seconds. When using MeasureGait10GRF15.scone from the examples, the gait measure component becomes quite large, which makes the effort measure less important. Here is the...
by Ton van den Bogert
Mon Nov 06, 2023 11:13 am
Forum: OpenSim Moco
Topic: Range of design variables
Replies: 3
Views: 349

Re: Range of design variables

Ross, In my experience, it can make a large difference. I once spent two weeks trying to find an error in my code, when an optimization problem would not solve. Turned out my code was correct after all, I just needed to change my force units to kN and it solved immediately. I don't know if this is g...