SCONE crashes when trying to check if a DOF is actuated through the is_actuated() method
Scone file:
Code: Select all
CmaOptimizer {
signature_prefix = DATE_TIME
SimulationObjective {
max_duration = 20
# Model used in simulation
OpenSimModel {
model_file = data/human_models/Human0914.osim
enable_external_forces = 1 # Required when applying external forces
# Optimize initial state parameters
state_init_file = data/state_init_files/InitStateGait10.sto
initial_state_offset = 0~0.01<-0.5,0.5>
initial_state_offset_exclude = "*_tx;*_ty;*_u"
}
CompositeController {
# Controller for gait, based on [Geyer & Herr 2010]
<< data/controller_files/ControllerGH2010.scone >>
ScriptController {
name = PerturbationDevice
script_file = "data/lua_files/Test.lua"
}
}
# Measure for gait
<< data/measure_files/MeasureGait.scone >>
}
}
Code: Select all
function init(model, par)
scone.debug("\nDOFs:")
for i = 1, model:dof_count(), 1 do
scone.debug(model:dof(i):name())
scone.debug(model:dof(i):is_actuated())
end
end
function update(model)
local t = tonumber(model:time())
return false
end
function store_data(frame)
end