Im quite new to the API and I could use some guidance. I'm trying to run a given RL model on any model with one muscle.I have been instructed to not use the opensim-rl framework for now.
I'm trying to run the python build_simple_arm_model script with the DRL model. First step for me is to simply be able to activate the muscle with a given force(in Newton for past uses in RL model) and output the angle.
The Millard2012EquilibriumMuscle is given a Max isometric force, but his is not the active force that is being applied?
What is being used in the example is the prescribed controller but I suspect this is not what I should use in this case. There seems to be lots of factors in to what makes the forceset/fiber_force values
TLDR
how can I simply set the force for the "bicep" muscle to be contracted?
snippet of the current muscle and controller code:
Code: Select all
biceps = osim.Millard2012EquilibriumMuscle("biceps", # Muscle name
100.0, # Max isometric force,"Maximum isometric force that the fibers can generate"
0.8, # Optimal fibre length
0.35, # Tendon slack length, "Resting length of the tendon"
0.0) # Pennation angle
################ the controller
brain = osim.PrescribedController()
brain.addActuator(biceps)
brain.prescribeControlForActuator("biceps",osim.StepFunction(0.1, 0.5, 0.1, 10.0))
Oskar