This was solved with setting state = manager.integrate(stepsize*(i + 1))
state was not updated without the assigning to state
will probably remove thread
cheers
Search found 5 matches
- Fri May 14, 2021 3:30 am
- Forum: OpenSim
- Topic: Abstract output into double/string
- Replies: 1
- Views: 190
- Thu May 13, 2021 8:36 am
- Forum: OpenSim
- Topic: Abstract output into double/string
- Replies: 1
- Views: 190
Abstract output into double/string
So I want to get this elbow_coord into a double or a string. (elbow Is a Pinjoint) elbow_coord = elbow.getCoordinate().getOutput("value") = abstract output what works temporarily is AbstractOutput::getValueAsString(const SimTK::State & state) but this requires a state, which results in the same outp...
- Thu May 06, 2021 2:00 pm
- Forum: OpenSim
- Topic: "live" simulation,External controller with path actuator
- Replies: 0
- Views: 174
"live" simulation,External controller with path actuator
I added a pathActuator to Arm26 model. writing a python script, Im just trying to set a force for the muscle to contract, updating and sending pos and vel for every iteration. Output handled later. something like this is what I had in mind (the loop especially): arm = osim.Model('Arm26.osim') arm.se...
- Thu May 06, 2021 5:38 am
- Forum: OpenSim
- Topic: RL on Simple Arm model: assign a force
- Replies: 2
- Views: 345
Re: RL on Simple Arm model: assign a force
The Millard2012EquilibriumMuscle is given a Max isometric force, but his is not the active force that is being applied? The maximum isometric force is the force the muscle will produce when maximally activated at its optimal fiber length and with zero velocity. Details about the muscle model can be...
- Tue Apr 27, 2021 10:09 am
- Forum: OpenSim
- Topic: RL on Simple Arm model: assign a force
- Replies: 2
- Views: 345
RL on Simple Arm model: assign a force
Hello 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 simp...