Hi Dafne,
I've attached the three files you'll need to run RRA with the LaiArnold2017 model. Note that the task file is generic so you'll need to tinker with the weights and coefficients in order to balance the reduction of residuals and maintaining kinematic consistent.
Hope that helps!
Adrian
Search found 46 matches
- Thu Jan 11, 2018 12:14 pm
- Forum: OpenSim
- Topic: Residual Reduction Error
- Replies: 2
- Views: 247
- Thu Jan 11, 2018 12:02 pm
- Forum: OpenSim
- Topic: Constraints violated when computing state derivatives
- Replies: 17
- Views: 3415
Re: Constraints violated when computing state derivatives
Another thing you could try is if some of the constraints are simple enough that you can derive them by hand, you could leave them out of OpenSim and instead implement them in IPOPT. So the loop in OpenSim is (deliberately) open then you close it in IPOPT. That's what I was thinking because it's a ...
- Tue Jan 09, 2018 3:33 pm
- Forum: OpenSim
- Topic: tendon compliance - Millard muscle - MATLAB
- Replies: 2
- Views: 248
Re: tendon compliance - Millard muscle - MATLAB
Hi Josh,
To do it in MATLAB, you need to safeDownCast the Millard2012EquilibriumMuscle down to the TendonForceLengthCurve of each muscle, set/update the strain and then print the model.
Adrian
To do it in MATLAB, you need to safeDownCast the Millard2012EquilibriumMuscle down to the TendonForceLengthCurve of each muscle, set/update the strain and then print the model.
Adrian
- Tue Jan 09, 2018 12:11 pm
- Forum: OpenSim
- Topic: Constraints violated when computing state derivatives
- Replies: 17
- Views: 3415
Re: Constraints violated when computing state derivatives
With that setup, I think the equations of motion are implemented as constraints in the optimization routine, just like any task constraints e.g. periodicity (it's all the same to IPOPT, big vector of equality constraints). If it's converging, IPOPT is essentially telling you "All the constraints I ...
- Mon Jan 08, 2018 11:49 am
- Forum: OpenSim
- Topic: Constraints violated when computing state derivatives
- Replies: 17
- Views: 3415
Re: Constraints violated when computing state derivatives
Hi Ross, Thanks for the reply. Could you describe some more details on how you're solving the optimal control problem? - are you doing forward integration, direct collocation, something else? - what optimization routine? - how big are the constraint violations? I'm doing direct collocation using IPO...
- Fri Jan 05, 2018 3:06 pm
- Forum: OpenSim
- Topic: Constraints violated when computing state derivatives
- Replies: 17
- Views: 3415
Re: Constraints violated when computing state derivatives
I guess it’s forward dynamics? I’m solving an optimal control problem outside of OpenSim. I use the OpenSim’s dynamic engine to compute state derivative but I was hoping that the constraints were included in the equations of motion.
Adrian
Adrian
- Wed Jan 03, 2018 3:25 pm
- Forum: OpenSim
- Topic: Constraints violated when computing state derivatives
- Replies: 17
- Views: 3415
Constraints violated when computing state derivatives
Hi everyone, I've been trying to solve a basic optimal control problem of a single leg pedal using some custom MATLAB code that calls OpenSim's dynamics engine. The model is currently closed loop with the hip/pelvis and the crank pinned to the ground and then I applied a weld constraint between two ...
- Wed Oct 25, 2017 11:59 pm
- Forum: 2017 Fall OpenSim Virtual Workshop
- Topic: Visualising OpenSim 4.0 results
- Replies: 5
- Views: 946
Re: Visualising OpenSim 4.0 results
Does stateSimulate.size() return 0? Yes, it returns 0. Am I creating the StateTrajectory incorrectly? stateStorage = Storage('tugOfWar_states.sto'); stateSimulate = StatesTrajectory(); stateSimulate.createFromStatesStorage(osimModel,stateStorage); Alternatively, I tried stateSimulate.createFromStat...
- Wed Oct 25, 2017 11:16 pm
- Forum: 2017 Fall OpenSim Virtual Workshop
- Topic: Visualising OpenSim 4.0 results
- Replies: 5
- Views: 946
Re: Visualising OpenSim 4.0 results
Hi Chris, Thanks for the reply. I was able to create the StateTrajectory using createFromStatesStorage() but when I tried to visualise the individual states, I get the following error. I tried different values but I get the same error. Any ideas? osimModel.getVisualizer().show(stateSimulate.get(0)) ...
- Wed Oct 25, 2017 9:55 pm
- Forum: 2017 Fall OpenSim Virtual Workshop
- Topic: Visualising OpenSim 4.0 results
- Replies: 5
- Views: 946
Visualising OpenSim 4.0 results
Hi all, I was wondering if anyone has tried visualising results obtained using OpenSim 4.0? I have control and state files computed using my own optimal control approach in conjunction with OpenSim 4.0. I have tried to use StatesTrajectory to load the states storage file but I'm unsure how to conver...