Search found 97 matches
- Mon Jan 22, 2024 11:31 pm
- Forum: SCONE
- Topic: How to import variable from scriptcontroller to scriptmeasure
- Replies: 3
- Views: 769
How to import variable from scriptcontroller to scriptmeasure
Hi all I want to use an objective function that minimize an error in scriptmeasure. Actually, I have defined a new variable at script controller, and I want to use the error (difference between the new variable and joint angle) in scriptmeasure. But as far as I know, I can't import a variable define...
- Fri Dec 29, 2023 11:55 pm
- Forum: SCONE
- Topic: reset time
- Replies: 5
- Views: 706
Re: reset time
Hello Thomas I have a specific question, and am appreciate to help me. I want to reset time my controller at each gait cycle meaning at the beginning EarlyStance. in fact, my controller runs for these states: "EarlyStance LateStance Liftoff Swing Landing". if I use the reset time code you mentioned ...
- Tue Dec 19, 2023 3:54 am
- Forum: OpenSim
- Topic: muscle forces of a patient
- Replies: 0
- Views: 138
muscle forces of a patient
Dear all I want to measure muscle forces of a patient who has abnormal gait using static optimization. Do I need the specific osim model of the patient to measure these forces and activation as well? or It's OK to use normal osim model of openism? Can you give me articles that refer to this issue? B...
- Wed Nov 29, 2023 8:11 am
- Forum: OpenSim
- Topic: Gait cycle
- Replies: 2
- Views: 291
Re: Gait cycle
Thanks Mohamadreza
I think it works well.
Best
I think it works well.
Best
- Sun Nov 26, 2023 6:11 am
- Forum: SCONE
- Topic: Metabolic Cost
- Replies: 1
- Views: 203
Metabolic Cost
Hi
I would like to use a metabolic cost including some muscles not all of them. Could you guide me how to exclude some muscles from Measure function like Uchida2016 or others?
Best
I would like to use a metabolic cost including some muscles not all of them. Could you guide me how to exclude some muscles from Measure function like Uchida2016 or others?
Best
- Sat Nov 25, 2023 1:05 am
- Forum: OpenSim
- Topic: Gait cycle
- Replies: 2
- Views: 291
Gait cycle
Hi I want to know how I can extract one gait cycle from a simulation results. For example, I have done 10 second gait simulation but I would like to display one gait cycle that I have extracted manually so far (from heel strike to next heel strike). Is there any code to extract it based on GRF? Best
- Thu Oct 12, 2023 3:16 am
- Forum: SCONE
- Topic: Ground reaction Force
- Replies: 3
- Views: 327
Re: Ground reaction Force
Hi Thomas
I changed the name of body to calcn_r but ground reaction force is still zero, while it isn't.
body = model:find_body("calcn_r")
GRF = body:contact_force()
Could you pls guide me how to get ground reaction force?
best
I changed the name of body to calcn_r but ground reaction force is still zero, while it isn't.
body = model:find_body("calcn_r")
GRF = body:contact_force()
Could you pls guide me how to get ground reaction force?
best
- Sat Oct 07, 2023 12:57 am
- Forum: SCONE
- Topic: Ground reaction Force
- Replies: 3
- Views: 327
Re: Ground reaction Force
Hi
I did it. No effective. I use this code to get the result of GRF:
function store_data(frame)
frame:set_value("GRF",GRF)
end
Is it true?
I did it. No effective. I use this code to get the result of GRF:
function store_data(frame)
frame:set_value("GRF",GRF)
end
Is it true?
Re: Vector
Many Thanks Thomas for your quick reply. May you tell me how to call A in form of a table? I changed my main code to ask my question. In fact, I want to obtain the length of time vector at instance time. So by having time step, I create this vector to record time. In this case we have: function upda...
Vector
Hi I would like to create a vector in script lua like this: A = 0:0.1:1. It means A starts from 0 and stops at 1 by step 0.1. To create this vector in Lua, I used the following code: A = {} function init(model, par) end function update(model) local start = 0 local stop = 1 local step = 0.1 for i = s...