Differences
This shows you the differences between two versions of the page.
— |
ref:lua_muscle [2020/06/19 15:47] (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 **force**() | get the current muscle force [N] | | ||
+ | | LuaNumber **normalized_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> | ||