Search found 97 matches

by Samane Amini
Sat Oct 17, 2020 12:20 am
Forum: OpenSim
Topic: Computing of huntcrossley force
Replies: 3
Views: 324

Computing of huntcrossley force

Hi I want to measure the huntcrossley force from contacts which is implemented on rear and front of legs(right and left). In fact, I simulate forward dynamic so computing GRF is necessary to control of joints. I exactly implement contacts on the toes and calcns. from contact modeling point of view, ...
by Samane Amini
Thu Oct 15, 2020 8:25 am
Forum: OpenSim
Topic: Joint Angle of opensim Body
Replies: 1
Views: 176

Joint Angle of opensim Body

Hi guys

In this code, the joint angle in opensim is degree or radian?

state = HGait.initSystem();

Coordiantes = HGait.getCoordinateSet();

Coordiantes.get('ankle_angle_r').setValue(state,tar)

Do you think I should set the joint angle in degrees or radian?
by Samane Amini
Wed Oct 14, 2020 5:56 am
Forum: OpenSim
Topic: How to get contact parameters of huntcrossley force
Replies: 3
Views: 275

Re: How to get contact parameters of huntcrossley force

Hi Nicos

thanks again. I could set the desired stiffness with your code:

Foot_r_R = HGait.getForceSet().get('foot_r_R');
r1hc = HuntCrossleyForce.safeDownCast(Foot_r_R);
stiffness = r1hc.getStiffness()
r1hc.setStiffness(2)

thanks so much :D
by Samane Amini
Wed Oct 14, 2020 4:32 am
Forum: OpenSim
Topic: How to get contact parameters of huntcrossley force
Replies: 3
Views: 275

Re: How to get contact parameters of huntcrossley force

Dear Nicos Haralabidis

it's done successfully. Thanks for guiding me.
From your opinion, if I want to set the desired stiffness, what would I do?
by Samane Amini
Tue Oct 13, 2020 11:58 pm
Forum: OpenSim
Topic: How to get contact parameters of huntcrossley force
Replies: 3
Views: 275

How to get contact parameters of huntcrossley force

Hi guys
I was wondering if how contact parameters of huntcrossley force get in MATLAB. I used this code, but it's wrong:

HuntCrossleyForce.getStiffness('Foot_r_R')

Foot_r_R: refers to rear contact of right leg

I am looking forward your replay...
by Samane Amini
Mon Aug 31, 2020 10:15 pm
Forum: OpenSim
Topic: How to get HunatCrossleyForce Or GRF in matlab?
Replies: 3
Views: 280

Re: How to get HunatCrossleyForce Or GRF in matlab?

Hi Nicos thanks for replying me. I do your suggestion. but this is wrong: Java exception occurred: java.lang.RuntimeException: SimTK Exception thrown at GeneralContactSubsystem.cpp:131: Expected stage to be at least Dynamics in GeneralContactSubsystemImpl::getContacts() but current stage was Velocit...
by Samane Amini
Mon Aug 31, 2020 4:40 am
Forum: OpenSim
Topic: How to get HunatCrossleyForce Or GRF in matlab?
Replies: 3
Views: 280

How to get HunatCrossleyForce Or GRF in matlab?

Hi
How Can i to get the GRF force of HunatCrossleyForce in matlab?
I know following code get the muscle force but no GFR?

Model.getForceSet().get('glut_med1_r').getRecordValues(state)