Search found 42 matches

by barak ostraich
Tue Feb 14, 2023 9:24 am
Forum: OpenSim
Topic: can i save initial value from moco state to use forward on?
Replies: 2
Views: 539

Re: can i save initial value from moco state to use forward on?

Im trying to build a custom actuator which whold remember the initial angle and use it for all other collocation nodes as a limit. This will be used in a moco run with effort goal. the actuator would return actuation value something like this: double computeActuation(const SimTK::State& s) const ove...
by barak ostraich
Fri Feb 10, 2023 5:38 am
Forum: OpenSim
Topic: can i save initial value from moco state to use forward on?
Replies: 2
Views: 539

can i save initial value from moco state to use forward on?

I need to save some state value got by the moco at initial time, and use it forward at time. for example: an actuator that initialized by the initial angle and forward at time the force relative to the initial angle. so i need a discretevariable that is saved at t=0 (not the default initial pose) i ...
by barak ostraich
Mon Jan 30, 2023 11:08 am
Forum: OpenSim
Topic: adding moco initial state info that depends on other state
Replies: 1
Views: 366

adding moco initial state info that depends on other state

I use clutchedPathSpring and its stretch state has limits to bound in between. The stretch must be starting from the formula of initial length and initial angle, which is also a state. apparently, now i can fix the initial value for the stretch or, if not, it starts from a value which satisfies the ...
by barak ostraich
Sat Sep 10, 2022 6:29 am
Forum: OpenSim
Topic: how the moco objectives are claculated
Replies: 2
Views: 582

Re: how the moco objectives are claculated

I found the reason but I dont understand. Where I read the model from file and compute analyzeMocoTrajectory I get one result but when I use the model in the same procedure immediately after the solution I get anther solution I had output for many other variables and there are all identical, all but...
by barak ostraich
Wed Sep 07, 2022 10:40 am
Forum: OpenSim
Topic: how the moco objectives are claculated
Replies: 2
Views: 582

how the moco objectives are claculated

I succeed in calculating with MocoOutputGoal of metabolic probe by: auto* metGoal = problem.addGoal<MocoOutputGoal>("met", 0.1); metGoal->setOutputPath("/metabolics|total_metabolic_rate"); metGoal->setDivideByDisplacement(true); metGoal->setDivideByMass(true); and I see the summary result at the sol...
by barak ostraich
Thu Apr 28, 2022 11:33 pm
Forum: OpenSim
Topic: ConditionalPathPoint not working
Replies: 2
Views: 437

Re: ConditionalPathPoint not working

Yes thanks.
It looks like a visualization problem
by barak ostraich
Sun Apr 24, 2022 7:59 am
Forum: OpenSim
Topic: ConditionalPathPoint not working
Replies: 2
Views: 437

ConditionalPathPoint not working

i have put a conditionalPathPoint on a muscle. It have to release the point when knee_angle_l not between -45 and 10. But its not working( Other conditional points in this model is working). can you find an error? or any other limitations I miss? <PathPoint name="med_gas_l-P1"> <location> -0.0190522...
by barak ostraich
Sun Apr 17, 2022 7:24 am
Forum: OpenSim Moco
Topic: ConditionalPathPoint not working
Replies: 1
Views: 286

ConditionalPathPoint not working

i have put a conditionalPathPoint on a muscle. It have to release the point when knee_angle_l not between -45 and 10. But its not working( Other conditional points in this model is working). can you find an error? or any other limitations I miss? <PathPoint name="med_gas_l-P1"> <location> -0.0190522...
by barak ostraich
Fri Sep 03, 2021 4:28 am
Forum: OpenSim
Topic: moco on distributed memory
Replies: 0
Views: 224

moco on distributed memory

can moco run on distributed memory with slurm
spannining on multi nodes?
by barak ostraich
Sat Aug 07, 2021 8:43 am
Forum: OpenSim
Topic: ploting muscle torqus relative to joint in matlab
Replies: 0
Views: 152

ploting muscle torqus relative to joint in matlab

I want to draw the muscle torque relative to a joint.
I can do it in Opensim gui by selecting muscle, joint and statefile

how can I draw this in matlab?