LuaModel

Model type for use in lua scripting.

See ScriptController and ScriptMeasure for details on scripting.

Public Functions

Function Description
LuaNumber time() get the current simulation time [s]
LuaNumber delta_time() get the current simulation time [s]
LuaVec3 com_pos() get the current com position [m]
LuaVec3 com_vel() get the current com velocity [m/s]
LuaActuator actuator(int index) get the actuator at index (starting at 1)
LuaActuator find_actuator(LuaString name) find an actuator with a specific name
int actuator_count() number of actuators
LuaDof dof(int index) get the muscle at index (starting at 1)
LuaDof find_dof(LuaString name) find a muscle with a specific name
int dof_count() number of bodies
LuaMuscle muscle(int index) get the muscle at index (starting at 1)
LuaMuscle find_muscle(LuaString name) find a muscle with a specific name
int muscle_count() number of bodies
LuaBody body(int index) get the body at index (starting at 1)
LuaBody find_body(LuaString name) find a body with a specific name
int body_count() number of bodies

Converted from doxygen using dokugen

  • (external edit)