Page 1 of 1

Changing inputs to be joint actuators

Posted: Thu Jun 27, 2024 7:56 am
by ernestoh92
Hello,
I am new to SCONE and I am trying to implement it's use to predict joint moments. Is there a way to replace muscle actuation with joint actuation? I have looked through the examples and tutorials and have not yet found a clue on how to achieve this. Any help is appreciated!

Re: Changing inputs to be joint actuators

Posted: Thu Jun 27, 2024 8:06 am
by tgeijten
Yes, that is possible! There is currently only one example though that uses joint actuation. You can find it in the SCONE Examples folder:

Examples/Jump2D - H0906 - Joint Motor - Hyfydy.scone

Please let me know if this helps!

Re: Changing inputs to be joint actuators

Posted: Thu Jun 27, 2024 8:35 am
by ernestoh92
Thanks for the reply! This is a good place to start. It looks like there is a feedforward torque controller being applied. Is there a straight forward method to implement a two state gait controller using joint actuation? I assume the reflex controller will need to be swapped for feedforward controllers is this correct?

Re: Changing inputs to be joint actuators

Posted: Fri Jun 28, 2024 4:00 am
by tgeijten
Yes, you can simply use the GaitStateController with two states and use joint actuation instead of muscle reflexes. You are not limited to feedforward control either, you can also use the DofReflex with a joint actuator, which makes it behave like a PD controller.

Re: Changing inputs to be joint actuators

Posted: Fri Jun 28, 2024 11:07 am
by ernestoh92
Thanks! What should the source and target be for the DofReflex?For source it seems like its just the name of the DOF but for target, i'm not sure what the name of the actuator should be.

Re: Changing inputs to be joint actuators

Posted: Sat Jun 29, 2024 10:07 am
by tgeijten
Simply use the name of the Dof (coordinate). They can be used both for source and target if you use a DofReflex.