Page 1 of 1

How to define CoordinateActuator

Posted: Tue Jul 12, 2022 7:08 am
by amini_opensim
Hello everyone

To apply a torque profile to the ankle joint, I've got the following ScriptControllr.lua:
qq4.PNG
qq4.PNG (11.49 KiB) Viewed 285 times
in fact, I've added ankle_motor_r as an actuator to OpenSim model like this:
qq2.PNG
qq2.PNG (23.7 KiB) Viewed 291 times

But the scenario doesn't work. it means it couldn't find the ankle_motor_r that I defined.

Do you know what's the problem?

Re: How to define CoordinateActuator

Posted: Thu Jul 14, 2022 12:20 pm
by tgeijten
In order to set the CoordinateActuator (or any other actuator) input, please use:

Code: Select all

p_motor:add_input( value )