Page 1 of 1

Scone Model: Error creating resource:error

Posted: Mon May 25, 2020 4:16 pm
by mritula
Hi,
I am getting an error when trying to optimize a scone scenario. I am getting the following error msg; I scaled using Opensim3.3. Have attached the
.osim file as well. Kindly let me know how to overcome this.

Thanks,
Mritula

error creating resource:error:body Unassigned referenced in marker R.ASIS does not exists in the model
Scenario:

Code: Select all

CmaOptimizer {
	signature_prefix = "WBDS01_1.10scaledmodel.osim"
	
	SimulationObjective {
		max_duration = 2
		
		# Model used in simulation
		OpenSimModel {
			model_file="data/ScaledOsimModelScaledWithMass/WBDS01_1.00scaledmodel.osim"
			
			
			# Optimize initial state parameters
			state_init_file = data/InitStateGait10.sto
			initial_state_offset =	0~0.01<-0.5,0.5>
			initial_state_offset_exclude = "*_tx;*_ty;*_u"
		}
		
		# Controller for gait, based on [Geyer & Herr 2010]
		<< data/ControllerGH2010.scone >>
		
		# Measure for gait
		<< data/MeasureGait10.scone >>
	}
}


Re: Scone Model: Error creating resource:error

Posted: Tue May 26, 2020 1:37 am
by tgeijten
Does the model open in OpenSim 3.3 without errors?

Re: Scone Model: Error creating resource:error

Posted: Tue May 26, 2020 1:40 am
by mritula
Hi Thomas,
I just checked in Opensim 3.3. Ohh the same error is shown. Clueless why this error comes. Sorry didnt think of checking in Opensim before.

Thanks,
Mritula

Re: Scone Model: Error creating resource:error

Posted: Wed May 27, 2020 10:58 pm
by mritula
The error was because I performed scaling through dos command from Matlab environment (opensim-cmd run-tool scale.xml) and it had used Opensim 4 to scale. In my system I have both Opensim 3 and 4 versions. So I had to change the dos prompt to face Opensim3.3/bin and run scaling using scale -S command. Then it worked fine. Hope this helps someone facing the same issue.

Thanks Thomas for pointing out the error.

Re: Scone Model: Error creating resource:error

Posted: Fri May 29, 2020 12:22 pm
by tgeijten
I'm glad it worked out -- thanks for posting!