Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ref:lua_muscle [2019/10/23 15:06]
ref:lua_muscle [2019/11/12 15:29] (current)
Line 1: Line 1:
 +====== LuaMuscle ======
 +Muscle type for use in lua scripting. ​
 +
 +See [[script_controller|ScriptController]] and [[script_measure|ScriptMeasure]] for details on scripting. ​
 +
 +==== Public Functions ====
 +^ Function ^ Description ^
 +| LuaString **name**() | get the name of the muscle |
 +| void **add_input**(LuaNumber value) | add a value to the normalized actuator input |
 +| LuaNumber **input**() | get the current actuator input |
 +| LuaNumber **excitation**() | get the normalized excitation level [0..1] of the muscle |
 +| LuaNumber **activation**() | get the normalized activation level [0..1] of the muscle |
 +| LuaNumber **fiber_length**() | get the fiber length [m] of the contractile element |
 +| LuaNumber **normalized_fiber_length**() | get the normalized fiber length of the contractile element |
 +| LuaNumber **optimal_fiber_length**() | get the optimal fiber length [m] |
 +| LuaNumber **fiber_force**() | get the current muscle force [N] |
 +| LuaNumber **normalized_fiber_force**() | get the normalized muscle force [0..1] |
 +| LuaNumber **max_isometric_force**() | get the maximum isometric force [N] |
 +| LuaNumber **contraction_velocity**() | get the contraction velocity [m/s] |
 +| LuaNumber **normalized_contraction_velocity**() | get the contraction velocity [m/s] |
 +
 +<​sub>​Converted from doxygen using [[https://​github.com/​tgeijten/​dokugen|dokugen]]</​sub>​