I'm trying to work with the MimicMeasure command to import a jump from an opensim scaled subject (I have both kinetics and GRF data) and then let SCONE calculate muscle contribution / energy cost / work done.
How should the code be written ? There's any tutorial or example ?
1) Should I use the cmaoptimizer function ?
2) Simulation objective max duration time should be set or it is derived from opensim .sto file ?
3) It Is correct to introduce a compositmeasure function to minimise muscle states in mimicmeasure function and penalise muscle effort to compute the activation ?
below my code:
Thank you
Andrea
Code: Select all
CmaOptimizer {
signature_prefix = DATE_TIME
# use previous result
# init_file = data/CMJ/ResultStandingHigh_CMJ_Jump.par
SimulationObjective {
# max_duration = 10
# Model used in simulation
OpenSimModel {
model_file = data/CMJ/Human0916_CMJ.osim
}
# Composite measure for straight pose jumping
CompositeMeasure {
dual_sided = 1
minimize = 1 # Minimize this measure
# MimicMeasure for Jump
MimicMeasure {
file = data/CMJ/inverse_dynamics.sto
#
include_states = *.
}
# Penalize high effort
EffortMeasure {
measure_type = TotalForce
}
}
}
}