How to define CoordinateActuator

SCONE is a software tool for predictive simulations of biomechanical movement. It uses OpenSim for modeling and simulation, and performs optimization using various control strategies, including feed-forward control, proprioceptic feedback control, and bal
POST REPLY
User avatar
Samane Amini
Posts: 97
Joined: Sun Jan 12, 2020 3:48 am

How to define CoordinateActuator

Post by Samane Amini » Tue Jul 12, 2022 7:08 am

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 243 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 249 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?

User avatar
Thomas Geijtenbeek
Posts: 425
Joined: Wed Mar 12, 2014 8:08 am

Re: How to define CoordinateActuator

Post by Thomas Geijtenbeek » Thu Jul 14, 2022 12:20 pm

In order to set the CoordinateActuator (or any other actuator) input, please use:

Code: Select all

p_motor:add_input( value )

POST REPLY