ExMujoco.Model (ExMujoco v0.1.1)

Copy Markdown View Source

The fields of mjModel, read one at a time.

Each function is one call into MuJoCo that copies the field out, so the answer is a value: it does not change under you when the next step runs.

  • a scalar answers a number — nq/1 answers an integer;
  • an array answers an ExMujoco.Tensor, with the element type and the shape, because a bare binary would have lost both;
  • a field MuJoCo gives no extent to is not here at all, and docs/coverage.md says which, and why.

The names are MuJoCo's own — geom_pos, qpos, efc_force — so the documentation for a field is MuJoCo's documentation for that field.

Summary

Types

t()

An mjModel this process holds.

Functions

actuator_acc0 — acceleration from unit force in qpos0 (nout x 1)

actuator_actadr — first activation address; -1: stateless (nactuator x 1)

actuator_actearly — step activation before force (nactuator x 1)

actuator_actlimited — is activation limited (nactuator x 1)

actuator_actnum — number of activation variables (nactuator x 1)

actuator_actrange — range of activations (nactuator x 2)

actuator_armature — armature added to target (joint, tendon) (nactuator x 1)

actuator_biasprm — bias parameters (nactuator x mjNBIAS)

actuator_biastype — bias type (mjtBias) (nactuator x 1)

actuator_cranklength — crank length for slider-crank (nactuator x 1)

actuator_ctrladr — address of first control (nactuator x 1)

actuator_ctrllimited — is control limited (nu x 1)

actuator_ctrlnum — number of controls (nactuator x 1)

actuator_ctrlrange — range of controls (nu x 2)

actuator_ctrlspec — input signature, scoped by gaintype (nactuator x 1)

actuator_damping — linear damping coefficient (nactuator x 1)

actuator_dampingpoly — high-order damping coefficients (nactuator x mjNPOLY)

actuator_delay — delay time; 0: no delay (nactuator x 1)

actuator_dynprm — dynamics parameters (nactuator x mjNDYN)

actuator_dyntype — dynamics type (mjtDyn) (nactuator x 1)

actuator_forcelimited — is force limited (nactuator x 1)

actuator_forcerange — range of forces (nactuator x 2)

actuator_gainprm — gain parameters (nactuator x mjNGAIN)

actuator_gaintype — gain type (mjtGain) (nactuator x 1)

actuator_gear — scale length and transmitted force (nout x 6)

actuator_group — group for visibility (nactuator x 1)

actuator_history — history buffer: [nsample, interp] (nactuator x 2)

actuator_historyadr — address in history buffer; -1: none (nactuator x 1)

actuator_length0 — actuator length in qpos0 (nout x 1)

actuator_lengthrange — feasible actuator length range (nout x 2)

actuator_outadr — address of first force output (nactuator x 1)

actuator_outnum — number of force outputs, from trntype (nactuator x 1)

actuator_plugin — plugin instance id; -1: not a plugin (nactuator x 1)

actuator_trnid — transmission id: joint, tendon, site (nactuator x 2)

actuator_trntype — transmission type (mjtTrn) (nactuator x 1)

actuator_user — user data (nactuator x nuser_actuator)

B_colind — body-dof: column indices (nB x 1)

B_rowadr — body-dof: row addresses (nbody x 1)

B_rownnz — body-dof: non-zeros in each row (nbody x 1)

body_bvhadr — address of bvh root (nbody x 1)

body_bvhnum — number of bounding volumes (nbody x 1)

body_conaffinity — OR over all geom conaffinities (nbody x 1)

body_contype — OR over all geom contypes (nbody x 1)

body_dofadr — start addr of dofs; -1: no dofs (nbody x 1)

body_dofnum — number of motion degrees of freedom (nbody x 1)

body_geomadr — start addr of geoms; -1: no geoms (nbody x 1)

body_geomnum — number of geoms (nbody x 1)

body_gravcomp — antigravity force, units of body weight (nbody x 1)

body_inertia — diagonal inertia in ipos/iquat frame (nbody x 3)

body_invweight0 — mean inv inert in qpos0 (trn, rot) (nbody x 2)

body_ipos — local position of center of mass (nbody x 3)

body_iquat — local orientation of inertia ellipsoid (nbody x 4)

body_jntadr — start addr of joints; -1: no joints (nbody x 1)

body_jntnum — number of joints for this body (nbody x 1)

body_margin — MAX over all geom margins+gaps (nbody x 1)

body_mass — mass (nbody x 1)

body_mocapid — id of mocap data; -1: none (nbody x 1)

body_parentid — id of body's parent (nbody x 1)

body_plugin — plugin instance id; -1: not in use (nbody x 1)

body_pos — position offset rel. to parent body (nbody x 3)

body_quat — orientation offset rel. to parent body (nbody x 4)

body_rootid — ancestor that is direct child of world (nbody x 1)

body_sameframe — same frame as inertia (mjtSameframe) (nbody x 1)

body_simple — 1: diag M; 2: diag M, sliders only (nbody x 1)

body_subtreemass — mass of subtree starting at this body (nbody x 1)

body_treeid — id of body's kinematic tree; -1: static (nbody x 1)

body_user — user data (nbody x nuser_body)

body_weldid — top dof-less ancestor; mocap: own root (nbody x 1)

bvh_aabb — local bounding box (center, size) (nbvhstatic x 6)

bvh_child — left and right children in tree (nbvh x 2)

bvh_depth — depth in the bounding volume hierarchy (nbvh x 1)

bvh_nodeid — geom or elem id of node; -1: non-leaf (nbvh x 1)

cam_bodyid — id of camera's body (ncam x 1)

cam_fovy — y field-of-view (ortho ? len : deg) (ncam x 1)

cam_intrinsic — [focal length; principal point] (ncam x 4)

cam_ipd — inter-pupilary distance (ncam x 1)

cam_mat0 — global orientation in qpos0 (ncam x 9)

cam_mode — camera tracking mode (mjtCamLight) (ncam x 1)

cam_output — output types (mjtCamOut bit flags) (ncam x 1)

cam_pos0 — global position rel. to body in qpos0 (ncam x 3)

cam_pos — position rel. to body frame (ncam x 3)

cam_poscom0 — global position rel. to sub-com in qpos0 (ncam x 3)

cam_projection — projection type (mjtProjection) (ncam x 1)

cam_quat — orientation rel. to body frame (ncam x 4)

cam_resolution — resolution: pixels [width, height] (ncam x 2)

cam_sensorsize — sensor size: length [width, height] (ncam x 2)

cam_targetbodyid — id of targeted body; -1: none (ncam x 1)

cam_user — user data (ncam x nuser_cam)

D_colind — full inertia: column indices (nD x 1)

D_diag — full inertia: index of diagonal element (nv x 1)

D_rowadr — full inertia: row addresses (nv x 1)

D_rownnz — full inertia: non-zeros in each row (nv x 1)

dof_armature — dof armature inertia/mass (nv x 1)

dof_bodyid — id of dof's body (nv x 1)

dof_damping — linear damping coefficient (nv x 1)

dof_dampingpoly — high-order damping coefficients (nv x mjNPOLY)

dof_frictionloss — dof friction loss (nv x 1)

dof_invweight0 — diag. inverse inertia in qpos0 (nv x 1)

dof_jntid — id of dof's joint (nv x 1)

dof_length — linear: 1; angular: approx. length scale (nv x 1)

dof_M0 — diag. inertia in qpos0 (nv x 1)

dof_Madr — dof address in M-diagonal (nv x 1)

dof_parentid — id of dof's parent; -1: none (nv x 1)

dof_simplenum — number of consecutive simple dofs (nv x 1)

dof_solimp — constraint solver impedance:frictionloss (nv x mjNIMP)

dof_solref — constraint solver reference:frictionloss (nv x mjNREF)

dof_treeid — id of dof's kinematic tree (nv x 1)

efm0_dofid — constant metric factor row->dof address (nefm0dof x 1)

efm0_L — factor of M + (dt^2+dtd)K_bend (nefm0L x 1)

efm0_L_colind — constant metric factor column indices (nefm0L x 1)

efm0_L_rowadr — constant metric factor row addresses (nefm0dof x 1)

efm0_L_rownnz — constant metric factor row nonzeros (nefm0dof x 1)

efmC_perm — sparse factor order: vertex dof or -1 (nefmCvert x 1)

eq_active0 — initial enable/disable constraint state (neq x 1)

eq_data — numeric data for constraint (neq x mjNEQDATA)

eq_obj1id — id of object 1 (neq x 1)

eq_obj2id — id of object 2 (neq x 1)

eq_objtype — type of both objects (mjtObj) (neq x 1)

eq_solimp — constraint solver impedance (neq x mjNIMP)

eq_solref — constraint solver reference (neq x mjNREF)

eq_type — constraint type (mjtEq) (neq x 1)

exclude_signature — body1 << 16 + body2 (nexclude x 1)

flex_activelayers — number of active element layers, 3D only (nflex x 1)

flex_bending — bending stiffness (nflexbending x 1)

flex_bendingadr — first bending data address (nflex x 1)

flex_bvhadr — address of bvh root; -1: no bvh (nflex x 1)

flex_bvhnum — number of bounding volumes (nflex x 1)

flex_cellnum — finite cell num per dimension (nflex x 3)

flex_centered — are all vertex coordinates (0,0,0) (nflex x 1)

flex_conaffinity — flex contact affinity (nflex x 1)

flex_condim — contact dimensionality (1, 3, 4, 6) (nflex x 1)

flex_contype — flex contact type (nflex x 1)

flex_damping — Rayleigh's damping coefficient (nflex x 1)

flex_dim — 1: lines, 2: triangles, 3: tetrahedra (nflex x 1)

flex_edge — edge vertex ids (2 per edge) (nflexedge x 2)

flex_edgeadr — first edge address (nflex x 1)

flex_edgedamping — edge damping (nflex x 1)

flex_edgeequality — 0:none, 1:edges, 3:strain (nflex x 1)

flex_edgeflap — adjacent vertex ids (dim=2 only) (nflexedge x 2)

flex_edgenum — number of edges (nflex x 1)

flex_edgestiffness — edge stiffness (nflex x 1)

flex_elem — element vertex ids (dim+1 per elem) (nflexelemdata x 1)

flex_elemadr — first element address (nflex x 1)

flex_elemdataadr — first element vertex id address (nflex x 1)

flex_elemedge — element edge ids (nflexelemedge x 1)

flex_elemedgeadr — first element edge id address (nflex x 1)

flex_elemlayer — element distance from surface, 3D only (nflexelem x 1)

flex_elemnum — number of elements (nflex x 1)

flex_elemtexcoord — element texture coordinates (dim+1) (nflexelemdata x 1)

flex_flatskin — render flex skin with flat shading (nflex x 1)

flex_friction — friction for (slide, spin, roll) (nflex x 3)

flex_gap — additional contact detection buffer (nflex x 1)

flex_group — group for visibility (nflex x 1)

flex_interp — interpolation (0: vertex, 1: nodes) (nflex x 1)

flex_margin — geometric inflation for contact (nflex x 1)

flex_matid — material id for rendering (nflexelem x 1)

flex_node0 — Cartesian node positions in qpos0 (nflexnode x 3)

flex_node — node positions in local body frames (nflexnode x 3)

flex_nodeadr — first node address (nflex x 1)

flex_nodebodyid — node body ids (nflexnode x 1)

flex_nodenum — number of nodes (nflex x 1)

flex_passive — passive collisions enabled (nflex x 1)

flex_plasticadr — plastic state address; -1: elastic (nflex x 1)

flex_plasticmode — plastic state bits; 1: bend, 2: stretch (nflex x 1)

flex_priority — flex contact priority (nflex x 1)

flex_radius — radius around primitive element (nflex x 1)

flex_rgba — rgba when material is omitted (nflex x 4)

flex_rigid — are all vertices in the same body (nflex x 1)

flex_selfcollide — self collision mode (mjtFlexSelf) (nflex x 1)

flex_shell — shell fragment vertex ids (dim per frag) (nflexshelldata x 1)

flex_shelldataadr — first shell data address (nflex x 1)

flex_shellnum — number of shells (nflex x 1)

flex_size — vertex bounding box half sizes in qpos0 (nflex x 3)

flex_solimp — constraint solver impedance: contact (nflex x mjNIMP)

flex_solmix — mix coef for solref/imp in contact pair (nflex x 1)

flex_solref — constraint solver reference: contact (nflex x mjNREF)

flex_stiffness — finite element stiffness matrix (nflexstiffness x 1)

flex_stiffnessadr — stiffness matrix address (nflex x 1)

flex_texcoord — vertex texture coordinates (nflextexcoord x 2)

flex_texcoordadr — address in flex_texcoord; -1: none (nflex x 1)

flex_vert0 — vertex positions in qpos0 on [0, 1]^d (nflexvert x 3)

flex_vert — vertex positions in local body frames (nflexvert x 3)

flex_vertadr — first vertex address (nflex x 1)

flex_vertbodyid — vertex body ids (nflexvert x 1)

flex_vertcell — finite cell index for vertex; -1: none (nflexvert x 1)

flex_vertnum — number of vertices (nflex x 1)

flex_yield — yield strain (stretch, bend); 0: elastic (nflex x 2)

flexedge_invweight0 — edge inv. weight in qpos0 (nflexedge x 1)

flexedge_J_colind — column indices in sparse Jacobian (nJfe x 1)

flexedge_J_rowadr — row start address in colind array (nflexedge x 1)

flexedge_J_rownnz — number of non-zeros in Jacobian row (nflexedge x 1)

flexedge_length0 — edge lengths in qpos0 (nflexedge x 1)

flexedge_rigid — are both edge vertices in same body (nflexedge x 1)

flg_adhesion — whether any geom or pair has nonzero adhesion

flg_gravcomp — whether any body has nonzero gravcomp

flg_surfacevel — whether any geom has nonzero surfacevel

geom_aabb — bounding box, (center, size) (ngeom x 6)

geom_adhesion — adhesive force of contacts (ngeom x 1)

geom_bodyid — id of geom's body (ngeom x 1)

geom_castshadow — does geom cast shadows (ngeom x 1)

geom_conaffinity — geom contact affinity (ngeom x 1)

geom_condim — contact dimensionality (1, 3, 4, 6) (ngeom x 1)

geom_contype — geom contact type (ngeom x 1)

geom_dataid — id of geom's mesh/hfield; -1: none (ngeom x 1)

geom_fluid — fluid interaction parameters (ngeom x mjNFLUID)

geom_friction — friction for (slide, spin, roll) (ngeom x 3)

geom_gap — additional contact detection buffer (ngeom x 1)

geom_group — group for visibility (ngeom x 1)

geom_margin — geometric inflation for contact (ngeom x 1)

geom_matid — material id for rendering; -1: none (ngeom x 1)

geom_plugin — plugin instance id; -1: not in use (ngeom x 1)

geom_pos — local position offset rel. to body (ngeom x 3)

geom_priority — geom contact priority (ngeom x 1)

geom_quat — local orientation offset rel. to body (ngeom x 4)

geom_rbound — radius of bounding sphere (ngeom x 1)

geom_rgba — rgba when material is omitted (ngeom x 4)

geom_sameframe — same frame as body (mjtSameframe) (ngeom x 1)

geom_size — geom-specific size parameters (ngeom x 3)

geom_solimp — constraint solver impedance: contact (ngeom x mjNIMP)

geom_solmix — mixing coef for solref/imp in geom pair (ngeom x 1)

geom_solref — constraint solver reference: contact (ngeom x mjNREF)

geom_surfacevel — surface velocity in local frame: lin,ang (ngeom x 6)

geom_type — geometric type (mjtGeom) (ngeom x 1)

geom_user — user data (ngeom x nuser_geom)

hfield_adr — address in hfield_data (nhfield x 1)

hfield_data — elevation data (nhfielddata x 1)

hfield_ncol — number of columns in grid (nhfield x 1)

hfield_nrow — number of rows in grid (nhfield x 1)

hfield_pathadr — address of hfield asset path; -1: none (nhfield x 1)

hfield_size — (x, y, z_top, z_bottom) (nhfield x 4)

jnt_actfrclimited — does joint have actuator force limits (njnt x 1)

jnt_actfrcrange — range of total actuator force (njnt x 2)

jnt_actgravcomp — is gravcomp force applied via actuators (njnt x 1)

jnt_actuatorid — actuator contributing damping / armature (njnt x 1)

jnt_axis — local joint axis (njnt x 3)

jnt_bodyid — id of joint's body (njnt x 1)

jnt_dofadr — start addr in 'qvel' for joint's data (njnt x 1)

jnt_group — group for visibility (njnt x 1)

jnt_limited — does joint have limits (njnt x 1)

jnt_margin — min distance for limit detection (njnt x 1)

jnt_plasticadr — start addr in plastic state (-1: none) (njnt x 1)

jnt_pos — local anchor position (njnt x 3)

jnt_qposadr — start addr in 'qpos' for joint's data (njnt x 1)

jnt_range — joint limits (njnt x 2)

jnt_solimp — constraint solver impedance: limit (njnt x mjNIMP)

jnt_solref — constraint solver reference: limit (njnt x mjNREF)

jnt_springyield — plastic yield threshold (njnt x 1)

jnt_stiffness — linear stiffness coefficient (njnt x 1)

jnt_stiffnesspoly — high-order stiffness coefficients (njnt x mjNPOLY)

jnt_type — type of joint (mjtJoint) (njnt x 1)

jnt_user — user data (njnt x nuser_jnt)

key_act — key activation (nkey x na)

key_ctrl — key control (nkey x nu)

key_mpos — key mocap position (nkey x nmocap*3)

key_mquat — key mocap quaternion (nkey x nmocap*4)

key_plastic — key plastic state (nkey x nplastic)

key_qpos — key position (nkey x nq)

key_qvel — key velocity (nkey x nv)

key_time — key time (nkey x 1)

light_active — is light on (nlight x 1)

light_ambient — ambient rgb (alpha=1) (nlight x 3)

light_attenuation — OpenGL attenuation (quadratic model) (nlight x 3)

light_bodyid — id of light's body (nlight x 1)

light_bulbradius — light radius for soft shadows (nlight x 1)

light_castshadow — does light cast shadows (nlight x 1)

light_cutoff — OpenGL cutoff (nlight x 1)

light_diffuse — diffuse rgb (alpha=1) (nlight x 3)

light_dir0 — global direction in qpos0 (nlight x 3)

light_dir — direction rel. to body frame (nlight x 3)

light_exponent — OpenGL exponent (nlight x 1)

light_intensity — intensity, in candela (nlight x 1)

light_mode — light tracking mode (mjtCamLight) (nlight x 1)

light_pos0 — global position rel. to body in qpos0 (nlight x 3)

light_pos — position rel. to body frame (nlight x 3)

light_poscom0 — global position rel. to sub-com in qpos0 (nlight x 3)

light_range — range of effectiveness (nlight x 1)

light_softness — spotlight edge softness (nlight x 1)

light_specular — specular rgb (alpha=1) (nlight x 3)

light_targetbodyid — id of targeted body; -1: none (nlight x 1)

light_texid — texture id for image lights (nlight x 1)

light_type — spot, directional, etc. (mjtLightType) (nlight x 1)

M_colind — reduced inertia: column indices (nC x 1)

M_rowadr — reduced inertia: row addresses (nv x 1)

M_rownnz — reduced inertia: non-zeros in each row (nv x 1)

mapD2M — index mapping from D to M (nC x 1)

mapM2D — index mapping from M to D (nD x 1)

mapM2M — index mapping from qM to M (nC x 1)

mat_emission — emission (x rgb) (nmat x 1)

mat_metallic — metallic coef (nmat x 1)

mat_reflectance — reflectance (0: disable) (nmat x 1)

mat_rgba — rgba (nmat x 4)

mat_roughness — roughness coef (nmat x 1)

mat_shininess — shininess coef (nmat x 1)

mat_specular — specular (x white) (nmat x 1)

mat_texid — indices of textures; -1: none (nmat x mjNTEXROLE)

mat_texrepeat — texture repetition for 2d mapping (nmat x 2)

mat_texuniform — make texture cube uniform (nmat x 1)

mesh_bvhadr — address of bvh root (nmesh x 1)

mesh_bvhnum — number of bvh (nmesh x 1)

mesh_extrema — extremum vertices in 3x3x3 directions (nmesh x 27)

mesh_face — vertex face data (nmeshface x 3)

mesh_faceadr — first face address (nmesh x 1)

mesh_facenormal — normal face data (nmeshface x 3)

mesh_facenum — number of faces (nmesh x 1)

mesh_facetexcoord — texture face data (nmeshface x 3)

mesh_graph — convex graph data (nmeshgraph x 1)

mesh_graphadr — graph data address; -1: no graph (nmesh x 1)

mesh_normal — normals for all meshes (nmeshnormal x 3)

mesh_normaladr — first normal address (nmesh x 1)

mesh_normalnum — number of normals (nmesh x 1)

mesh_octadr — address of octree root (nmesh x 1)

mesh_octnum — number of octree nodes (nmesh x 1)

mesh_pathadr — address of asset path for mesh; -1: none (nmesh x 1)

mesh_polyadr — first polygon address per mesh (nmesh x 1)

mesh_polymap — vertex to polygon map (nmeshpolymap x 1)

mesh_polymapadr — first polygon address per vertex (nmeshvert x 1)

mesh_polymapnum — number of polygons per vertex (nmeshvert x 1)

mesh_polynormal — all polygon normals (nmeshpoly x 3)

mesh_polynum — number of polygons per mesh (nmesh x 1)

mesh_polyvert — all polygon vertices (nmeshpolyvert x 1)

mesh_polyvertadr — polygon vertex start address (nmeshpoly x 1)

mesh_polyvertnum — number of vertices per polygon (nmeshpoly x 1)

mesh_pos — translation applied to asset vertices (nmesh x 3)

mesh_quat — rotation applied to asset vertices (nmesh x 4)

mesh_scale — scaling applied to asset vertices (nmesh x 3)

mesh_texcoord — vertex texcoords for all meshes (nmeshtexcoord x 2)

mesh_texcoordadr — texcoord data address; -1: no texcoord (nmesh x 1)

mesh_texcoordnum — number of texcoord (nmesh x 1)

mesh_vert — vertex positions for all meshes (nmeshvert x 3)

mesh_vertadr — first vertex address (nmesh x 1)

mesh_vertnum — number of vertices (nmesh x 1)

na — number of activation states = dim(act)

nactuator — number of actuators

name_actuatoradr — actuator name pointers (nactuator x 1)

name_bodyadr — body name pointers (nbody x 1)

name_camadr — camera name pointers (ncam x 1)

name_eqadr — equality constraint name pointers (neq x 1)

name_excludeadr — exclude name pointers (nexclude x 1)

name_flexadr — flex name pointers (nflex x 1)

name_geomadr — geom name pointers (ngeom x 1)

name_hfieldadr — hfield name pointers (nhfield x 1)

name_jntadr — joint name pointers (njnt x 1)

name_keyadr — keyframe name pointers (nkey x 1)

name_lightadr — light name pointers (nlight x 1)

name_matadr — material name pointers (nmat x 1)

name_meshadr — mesh name pointers (nmesh x 1)

name_numericadr — numeric name pointers (nnumeric x 1)

name_pairadr — geom pair name pointers (npair x 1)

name_pluginadr — plugin instance name pointers (nplugin x 1)

name_sensoradr — sensor name pointers (nsensor x 1)

name_siteadr — site name pointers (nsite x 1)

name_skinadr — skin name pointers (nskin x 1)

name_tendonadr — tendon name pointers (ntendon x 1)

name_texadr — texture name pointers (ntex x 1)

name_textadr — text name pointers (ntext x 1)

name_tupleadr — tuple name pointers (ntuple x 1)

names_map — internal hash map of names (nnames_map x 1)

narena — number of bytes in the mjData arena (inclusive of stack)

nB — number of non-zeros in sparse body-dof matrix

nbody — number of bodies

nbuffer — number of bytes in buffer

nbvh — number of total bounding volumes in all bodies

nbvhdynamic — number of dynamic bounding volumes (aabb stored in mjData)

nbvhstatic — number of static bounding volumes (aabb stored in mjModel)

nC — number of non-zeros in sparse reduced dof-dof matrix

ncam — number of cameras

nconmax — number of potential contacts in contact list (legacy)

nD — number of non-zeros in sparse dof-dof matrix

nefm0dof — number of dofs covered by the constant metric factor

nefm0L — number of non-zeros in the constant metric factor

nefmCvert — number of sparse metric factor ordering slots

nemax — number of potential equality-constraint rows

neq — number of equality constraints

nexclude — number of excluded geom pairs

nflex — number of flexes

nflexbending — number of bending parameters in all flexes

nflexedge — number of edges in all flexes

nflexelem — number of elements in all flexes

nflexelemdata — number of element vertex ids in all flexes

nflexelemedge — number of element edge ids in all flexes

nflexnode — number of dofs in all flexes

nflexshelldata — number of shell fragment vertex ids in all flexes

nflexstiffness — number of stiffness parameters in all flexes

nflextexcoord — number of vertices with texture coordinates

nflexvert — number of vertices in all flexes

ngeom — number of geoms

ngravcomp — number of bodies with nonzero gravcomp

nhfield — number of heightfields

nhfielddata — number of data points in all heightfields

nhistory — number of mjtNums in history buffer

nJfe — number of non-zeros in sparse flexedge Jacobian matrix

nJmom — number of non-zeros in sparse actuator_moment matrix

nJten — number of non-zeros in sparse ten_J matrix

njmax — number of available rows in constraint Jacobian (legacy)

njnt — number of joints

nkey — number of keyframes

nlight — number of lights

nM — number of non-zeros in sparse inertia matrix

nmat — number of materials

nmesh — number of meshes

nmeshdegmax — maximum number of edges adjacent to a mesh vertex

nmeshface — number of triangular faces in all meshes

nmeshgraph — number of ints in mesh auxiliary data

nmeshnormal — number of normals in all meshes

nmeshpoly — number of polygons in all meshes

nmeshpolymap — number of polygons in vertex map

nmeshpolyvert — number of vertices in all polygons

nmeshtexcoord — number of texcoords in all meshes

nmeshvert — number of vertices in all meshes

nmocap — number of mocap bodies

nnames — number of chars in all names

nnames_map — number of slots in the names hash map

nnumeric — number of numeric custom fields

nnumericdata — number of mjtNums in all numeric fields

noct — number of total octree cells in all meshes

nout — number of force outputs, derived from transmission type

npair — number of predefined geom pairs

npaths — number of chars in all paths

nplastic — number of mjtNums in plastic state vector

nplugin — number of plugin instances

npluginattr — number of chars in all plugin config attributes

npluginstate — number of mjtNums in plugin state vector

npolygonmax — maximum number of vertices in a mesh polygon

nq — number of generalized coordinates = dim(qpos)

nsensor — number of sensors

nsensordata — number of mjtNums in sensor data vector

nsite — number of sites

nskin — number of skins

nskinbone — number of bones in all skins

nskinbonevert — number of vertices in all skin bones

nskinface — number of triangular faces in all skins

nskintexvert — number of vertices with texcoords in all skins

nskinvert — number of vertices in all skins

ntendon — number of tendons

ntex — number of textures

ntexdata — number of bytes in texture rgb data

ntext — number of text custom fields

ntextdata — number of mjtBytes in all text fields

ntree — number of kinematic trees under world body

ntuple — number of tuple custom fields

ntupledata — number of objects in all tuple fields

nu — number of scalar controls = dim(ctrl)

numeric_adr — address of field in numeric_data (nnumeric x 1)

numeric_data — array of all numeric fields (nnumericdata x 1)

numeric_size — size of numeric field (nnumeric x 1)

nuser_actuator — number of mjtNums in actuator_user

nuser_body — number of mjtNums in body_user

nuser_cam — number of mjtNums in cam_user

nuser_geom — number of mjtNums in geom_user

nuser_jnt — number of mjtNums in jnt_user

nuser_sensor — number of mjtNums in sensor_user

nuser_site — number of mjtNums in site_user

nuser_tendon — number of mjtNums in tendon_user

nuserdata — number of mjtNums reserved for the user

nv — number of degrees of freedom = dim(qvel)

nwrap — number of wrap objects in all tendon paths

oct_aabb — octree node bounding box (center, size) (noct x 6)

oct_child — children of octree node (noct x 8)

oct_coeff — octree interpolation coefficients (noct x 8)

oct_depth — depth in the octree (noct x 1)

pair_adhesion — adhesive force of contacts (npair x 1)

pair_dim — contact dimensionality (npair x 1)

pair_friction — tangent1, 2, spin, roll1, 2 (npair x 5)

pair_gap — additional contact detection buffer (npair x 1)

pair_geom1 — id of geom1 (npair x 1)

pair_geom2 — id of geom2 (npair x 1)

pair_margin — geometric inflation for contact (npair x 1)

pair_signature — body1 << 16 + body2 (npair x 1)

pair_solimp — solver impedance: contact (npair x mjNIMP)

pair_solref — solver reference: contact normal (npair x mjNREF)

pair_solreffriction — solver reference: contact friction (npair x mjNREF)

plugin — globally registered plugin slot number (nplugin x 1)

plugin_attradr — address to each instance's config attrib (nplugin x 1)

plugin_stateadr — address in the plugin state array (nplugin x 1)

plugin_statenum — number of states in the plugin instance (nplugin x 1)

qpos0 — qpos values at default pose (nq x 1)

qpos_spring — reference pose for springs (nq x 1)

sensor_adr — address in sensor array (nsensor x 1)

sensor_cutoff — cutoff for real and positive; 0: ignore (nsensor x 1)

sensor_datatype — numeric data type (mjtDataType) (nsensor x 1)

sensor_delay — delay time in seconds; 0: no delay (nsensor x 1)

sensor_dim — number of scalar outputs (nsensor x 1)

sensor_history — history buffer: [nsample, interp] (nsensor x 2)

sensor_historyadr — address in history buffer; -1: none (nsensor x 1)

sensor_interval — interval: [period, phase] in seconds (nsensor x 2)

sensor_intprm — sensor parameters (nsensor x mjNSENS)

sensor_needstage — required compute stage (mjtStage) (nsensor x 1)

sensor_noise — noise standard deviation (nsensor x 1)

sensor_objid — id of sensorized object (nsensor x 1)

sensor_objtype — type of sensorized object (mjtObj) (nsensor x 1)

sensor_plugin — plugin instance id; -1: not a plugin (nsensor x 1)

sensor_refid — id of reference frame; -1: global frame (nsensor x 1)

sensor_reftype — type of reference frame (mjtObj) (nsensor x 1)

sensor_type — sensor type (mjtSensor) (nsensor x 1)

sensor_user — user data (nsensor x nuser_sensor)

site_bodyid — id of site's body (nsite x 1)

site_dataid — id of site's mesh; -1: none (nsite x 1)

site_group — group for visibility (nsite x 1)

site_matid — material id for rendering; -1: none (nsite x 1)

site_pos — local position offset rel. to body (nsite x 3)

site_quat — local orientation offset rel. to body (nsite x 4)

site_rgba — rgba when material is omitted (nsite x 4)

site_sameframe — same frame as body (mjtSameframe) (nsite x 1)

site_size — geom size for rendering (nsite x 3)

site_type — geom type for rendering (mjtGeom) (nsite x 1)

site_user — user data (nsite x nuser_site)

skin_boneadr — first bone in skin (nskin x 1)

skin_bonebindpos — bind pos of each bone (nskinbone x 3)

skin_bonebindquat — bind quat of each bone (nskinbone x 4)

skin_bonebodyid — body id of each bone (nskinbone x 1)

skin_bonenum — number of bones in skin (nskin x 1)

skin_bonevertadr — first vertex in each bone (nskinbone x 1)

skin_bonevertid — mesh ids of vertices in each bone (nskinbonevert x 1)

skin_bonevertnum — number of vertices in each bone (nskinbone x 1)

skin_bonevertweight — weights of vertices in each bone (nskinbonevert x 1)

skin_face — triangle faces for all skin meshes (nskinface x 3)

skin_faceadr — first face address (nskin x 1)

skin_facenum — number of faces (nskin x 1)

skin_group — group for visibility (nskin x 1)

skin_inflate — inflate skin in normal direction (nskin x 1)

skin_matid — skin material id; -1: none (nskin x 1)

skin_pathadr — address of asset path for skin; -1: none (nskin x 1)

skin_rgba — skin rgba (nskin x 4)

skin_texcoord — vertex texcoords for all skin meshes (nskintexvert x 2)

skin_texcoordadr — texcoord data address; -1: no texcoord (nskin x 1)

skin_vert — vertex positions for all skin meshes (nskinvert x 3)

skin_vertadr — first vertex address (nskin x 1)

skin_vertnum — number of vertices (nskin x 1)

ten_J_colind — column indices in sparse Jacobian (nJten x 1)

ten_J_rowadr — row start address in colind array (ntendon x 1)

ten_J_rownnz — number of non-zeros in Jacobian row (ntendon x 1)

tendon_actfrclimited — does tendon have actuator force limits (ntendon x 1)

tendon_actfrcrange — range of total actuator force (ntendon x 2)

tendon_actuatorid — actuator contributing damping / armature (ntendon x 1)

tendon_adr — address of first object in tendon's path (ntendon x 1)

tendon_armature — inertia associated with tendon velocity (ntendon x 1)

tendon_damping — linear damping coefficient (ntendon x 1)

tendon_dampingpoly — high-order damping coefficients (ntendon x mjNPOLY)

tendon_frictionloss — loss due to friction (ntendon x 1)

tendon_group — group for visibility (ntendon x 1)

tendon_invweight0 — inv. weight in qpos0 (ntendon x 1)

tendon_length0 — tendon length in qpos0 (ntendon x 1)

tendon_lengthspring — spring resting length range (ntendon x 2)

tendon_limited — does tendon have length limits (ntendon x 1)

tendon_margin — min distance for limit detection (ntendon x 1)

tendon_matid — material id for rendering (ntendon x 1)

tendon_num — number of objects in tendon's path (ntendon x 1)

tendon_plasticadr — start addr in plastic state (-1: none) (ntendon x 1)

tendon_range — tendon length limits (ntendon x 2)

tendon_rgba — rgba when material is omitted (ntendon x 4)

tendon_solimp_fri — constraint solver impedance: friction (ntendon x mjNIMP)

tendon_solimp_lim — constraint solver impedance: limit (ntendon x mjNIMP)

tendon_solref_fri — constraint solver reference: friction (ntendon x mjNREF)

tendon_solref_lim — constraint solver reference: limit (ntendon x mjNREF)

tendon_springyield — plastic yield threshold (ntendon x 1)

tendon_stiffness — linear stiffness coefficient (ntendon x 1)

tendon_stiffnesspoly — high-order stiffness coefficients (ntendon x mjNPOLY)

tendon_treeid — first two trees along tendon's path (ntendon x 2)

tendon_treenum — number of trees along tendon's path (ntendon x 1)

tendon_type — type of tendon (mjtTendon) (ntendon x 1)

tendon_user — user data (ntendon x nuser_tendon)

tendon_width — width for rendering (ntendon x 1)

tex_colorspace — texture colorspace (mjtColorSpace) (ntex x 1)

tex_contenttypeadr — content type address in paths; -1: none (ntex x 1)

tex_data — pixel values (ntexdata x 1)

tex_height — number of rows in texture image (ntex x 1)

tex_nchannel — number of channels in texture image (ntex x 1)

tex_pathadr — address of texture asset path; -1: none (ntex x 1)

tex_type — texture type (mjtTexture) (ntex x 1)

tex_width — number of columns in texture image (ntex x 1)

text_adr — address of text in text_data (ntext x 1)

text_size — size of text field (strlen+1) (ntext x 1)

tree_bodyadr — start addr of bodies (ntree x 1)

tree_bodynum — number of bodies in tree (ntree x 1)

tree_dofadr — start addr of dofs (ntree x 1)

tree_dofnum — number of dofs in tree (ntree x 1)

tree_sleep_policy — sleep policy (mjtSleepPolicy) (ntree x 1)

tuple_adr — address of text in text_data (ntuple x 1)

tuple_objid — array of object ids in all tuples (ntupledata x 1)

tuple_objprm — array of object params in all tuples (ntupledata x 1)

tuple_objtype — array of object types in all tuples (ntupledata x 1)

tuple_size — number of objects in tuple (ntuple x 1)

wrap_objid — object id: geom, site, joint (nwrap x 1)

wrap_prm — divisor, joint coef, or site id (nwrap x 1)

wrap_type — wrap object type (mjtWrap) (nwrap x 1)

Types

t()

@type t() :: reference()

An mjModel this process holds.

Functions

actuator_acc0(model)

@spec actuator_acc0(t()) :: ExMujoco.Tensor.t()

actuator_acc0 — acceleration from unit force in qpos0 (nout x 1)

mjtNum* in C, nout × 1.

actuator_actadr(model)

@spec actuator_actadr(t()) :: ExMujoco.Tensor.t()

actuator_actadr — first activation address; -1: stateless (nactuator x 1)

int* in C, nactuator × 1.

actuator_actearly(model)

@spec actuator_actearly(t()) :: ExMujoco.Tensor.t()

actuator_actearly — step activation before force (nactuator x 1)

mjtBool* in C, nactuator × 1.

actuator_actlimited(model)

@spec actuator_actlimited(t()) :: ExMujoco.Tensor.t()

actuator_actlimited — is activation limited (nactuator x 1)

mjtBool* in C, nactuator × 1.

actuator_actnum(model)

@spec actuator_actnum(t()) :: ExMujoco.Tensor.t()

actuator_actnum — number of activation variables (nactuator x 1)

int* in C, nactuator × 1.

actuator_actrange(model)

@spec actuator_actrange(t()) :: ExMujoco.Tensor.t()

actuator_actrange — range of activations (nactuator x 2)

mjtNum* in C, nactuator × 2.

actuator_armature(model)

@spec actuator_armature(t()) :: ExMujoco.Tensor.t()

actuator_armature — armature added to target (joint, tendon) (nactuator x 1)

mjtNum* in C, nactuator × 1.

actuator_biasprm(model)

@spec actuator_biasprm(t()) :: ExMujoco.Tensor.t()

actuator_biasprm — bias parameters (nactuator x mjNBIAS)

mjtNum* in C, nactuator × mjNBIAS.

actuator_biastype(model)

@spec actuator_biastype(t()) :: ExMujoco.Tensor.t()

actuator_biastype — bias type (mjtBias) (nactuator x 1)

int* in C, nactuator × 1.

actuator_cranklength(model)

@spec actuator_cranklength(t()) :: ExMujoco.Tensor.t()

actuator_cranklength — crank length for slider-crank (nactuator x 1)

mjtNum* in C, nactuator × 1.

actuator_ctrladr(model)

@spec actuator_ctrladr(t()) :: ExMujoco.Tensor.t()

actuator_ctrladr — address of first control (nactuator x 1)

int* in C, nactuator × 1.

actuator_ctrllimited(model)

@spec actuator_ctrllimited(t()) :: ExMujoco.Tensor.t()

actuator_ctrllimited — is control limited (nu x 1)

mjtBool* in C, nu × 1.

actuator_ctrlnum(model)

@spec actuator_ctrlnum(t()) :: ExMujoco.Tensor.t()

actuator_ctrlnum — number of controls (nactuator x 1)

int* in C, nactuator × 1.

actuator_ctrlrange(model)

@spec actuator_ctrlrange(t()) :: ExMujoco.Tensor.t()

actuator_ctrlrange — range of controls (nu x 2)

mjtNum* in C, nu × 2.

actuator_ctrlspec(model)

@spec actuator_ctrlspec(t()) :: ExMujoco.Tensor.t()

actuator_ctrlspec — input signature, scoped by gaintype (nactuator x 1)

int* in C, nactuator × 1.

actuator_damping(model)

@spec actuator_damping(t()) :: ExMujoco.Tensor.t()

actuator_damping — linear damping coefficient (nactuator x 1)

mjtNum* in C, nactuator × 1.

actuator_dampingpoly(model)

@spec actuator_dampingpoly(t()) :: ExMujoco.Tensor.t()

actuator_dampingpoly — high-order damping coefficients (nactuator x mjNPOLY)

mjtNum* in C, nactuator × mjNPOLY.

actuator_delay(model)

@spec actuator_delay(t()) :: ExMujoco.Tensor.t()

actuator_delay — delay time; 0: no delay (nactuator x 1)

mjtNum* in C, nactuator × 1.

actuator_dynprm(model)

@spec actuator_dynprm(t()) :: ExMujoco.Tensor.t()

actuator_dynprm — dynamics parameters (nactuator x mjNDYN)

mjtNum* in C, nactuator × mjNDYN.

actuator_dyntype(model)

@spec actuator_dyntype(t()) :: ExMujoco.Tensor.t()

actuator_dyntype — dynamics type (mjtDyn) (nactuator x 1)

int* in C, nactuator × 1.

actuator_forcelimited(model)

@spec actuator_forcelimited(t()) :: ExMujoco.Tensor.t()

actuator_forcelimited — is force limited (nactuator x 1)

mjtBool* in C, nactuator × 1.

actuator_forcerange(model)

@spec actuator_forcerange(t()) :: ExMujoco.Tensor.t()

actuator_forcerange — range of forces (nactuator x 2)

mjtNum* in C, nactuator × 2.

actuator_gainprm(model)

@spec actuator_gainprm(t()) :: ExMujoco.Tensor.t()

actuator_gainprm — gain parameters (nactuator x mjNGAIN)

mjtNum* in C, nactuator × mjNGAIN.

actuator_gaintype(model)

@spec actuator_gaintype(t()) :: ExMujoco.Tensor.t()

actuator_gaintype — gain type (mjtGain) (nactuator x 1)

int* in C, nactuator × 1.

actuator_gear(model)

@spec actuator_gear(t()) :: ExMujoco.Tensor.t()

actuator_gear — scale length and transmitted force (nout x 6)

mjtNum* in C, nout × 6.

actuator_group(model)

@spec actuator_group(t()) :: ExMujoco.Tensor.t()

actuator_group — group for visibility (nactuator x 1)

int* in C, nactuator × 1.

actuator_history(model)

@spec actuator_history(t()) :: ExMujoco.Tensor.t()

actuator_history — history buffer: [nsample, interp] (nactuator x 2)

int* in C, nactuator × 2.

actuator_historyadr(model)

@spec actuator_historyadr(t()) :: ExMujoco.Tensor.t()

actuator_historyadr — address in history buffer; -1: none (nactuator x 1)

int* in C, nactuator × 1.

actuator_length0(model)

@spec actuator_length0(t()) :: ExMujoco.Tensor.t()

actuator_length0 — actuator length in qpos0 (nout x 1)

mjtNum* in C, nout × 1.

actuator_lengthrange(model)

@spec actuator_lengthrange(t()) :: ExMujoco.Tensor.t()

actuator_lengthrange — feasible actuator length range (nout x 2)

mjtNum* in C, nout × 2.

actuator_outadr(model)

@spec actuator_outadr(t()) :: ExMujoco.Tensor.t()

actuator_outadr — address of first force output (nactuator x 1)

int* in C, nactuator × 1.

actuator_outnum(model)

@spec actuator_outnum(t()) :: ExMujoco.Tensor.t()

actuator_outnum — number of force outputs, from trntype (nactuator x 1)

int* in C, nactuator × 1.

actuator_plugin(model)

@spec actuator_plugin(t()) :: ExMujoco.Tensor.t()

actuator_plugin — plugin instance id; -1: not a plugin (nactuator x 1)

int* in C, nactuator × 1.

actuator_trnid(model)

@spec actuator_trnid(t()) :: ExMujoco.Tensor.t()

actuator_trnid — transmission id: joint, tendon, site (nactuator x 2)

int* in C, nactuator × 2.

actuator_trntype(model)

@spec actuator_trntype(t()) :: ExMujoco.Tensor.t()

actuator_trntype — transmission type (mjtTrn) (nactuator x 1)

int* in C, nactuator × 1.

actuator_user(model)

@spec actuator_user(t()) :: ExMujoco.Tensor.t()

actuator_user — user data (nactuator x nuser_actuator)

mjtNum* in C, nactuator × nuser_actuator@model.

b_colind(model)

@spec b_colind(t()) :: ExMujoco.Tensor.t()

B_colind — body-dof: column indices (nB x 1)

int* in C, nB × 1.

b_rowadr(model)

@spec b_rowadr(t()) :: ExMujoco.Tensor.t()

B_rowadr — body-dof: row addresses (nbody x 1)

int* in C, nbody × 1.

b_rownnz(model)

@spec b_rownnz(t()) :: ExMujoco.Tensor.t()

B_rownnz — body-dof: non-zeros in each row (nbody x 1)

int* in C, nbody × 1.

body_bvhadr(model)

@spec body_bvhadr(t()) :: ExMujoco.Tensor.t()

body_bvhadr — address of bvh root (nbody x 1)

int* in C, nbody × 1.

body_bvhnum(model)

@spec body_bvhnum(t()) :: ExMujoco.Tensor.t()

body_bvhnum — number of bounding volumes (nbody x 1)

int* in C, nbody × 1.

body_conaffinity(model)

@spec body_conaffinity(t()) :: ExMujoco.Tensor.t()

body_conaffinity — OR over all geom conaffinities (nbody x 1)

int* in C, nbody × 1.

body_contype(model)

@spec body_contype(t()) :: ExMujoco.Tensor.t()

body_contype — OR over all geom contypes (nbody x 1)

int* in C, nbody × 1.

body_dofadr(model)

@spec body_dofadr(t()) :: ExMujoco.Tensor.t()

body_dofadr — start addr of dofs; -1: no dofs (nbody x 1)

int* in C, nbody × 1.

body_dofnum(model)

@spec body_dofnum(t()) :: ExMujoco.Tensor.t()

body_dofnum — number of motion degrees of freedom (nbody x 1)

int* in C, nbody × 1.

body_geomadr(model)

@spec body_geomadr(t()) :: ExMujoco.Tensor.t()

body_geomadr — start addr of geoms; -1: no geoms (nbody x 1)

int* in C, nbody × 1.

body_geomnum(model)

@spec body_geomnum(t()) :: ExMujoco.Tensor.t()

body_geomnum — number of geoms (nbody x 1)

int* in C, nbody × 1.

body_gravcomp(model)

@spec body_gravcomp(t()) :: ExMujoco.Tensor.t()

body_gravcomp — antigravity force, units of body weight (nbody x 1)

mjtNum* in C, nbody × 1.

body_inertia(model)

@spec body_inertia(t()) :: ExMujoco.Tensor.t()

body_inertia — diagonal inertia in ipos/iquat frame (nbody x 3)

mjtNum* in C, nbody × 3.

body_invweight0(model)

@spec body_invweight0(t()) :: ExMujoco.Tensor.t()

body_invweight0 — mean inv inert in qpos0 (trn, rot) (nbody x 2)

mjtNum* in C, nbody × 2.

body_ipos(model)

@spec body_ipos(t()) :: ExMujoco.Tensor.t()

body_ipos — local position of center of mass (nbody x 3)

mjtNum* in C, nbody × 3.

body_iquat(model)

@spec body_iquat(t()) :: ExMujoco.Tensor.t()

body_iquat — local orientation of inertia ellipsoid (nbody x 4)

mjtNum* in C, nbody × 4.

body_jntadr(model)

@spec body_jntadr(t()) :: ExMujoco.Tensor.t()

body_jntadr — start addr of joints; -1: no joints (nbody x 1)

int* in C, nbody × 1.

body_jntnum(model)

@spec body_jntnum(t()) :: ExMujoco.Tensor.t()

body_jntnum — number of joints for this body (nbody x 1)

int* in C, nbody × 1.

body_margin(model)

@spec body_margin(t()) :: ExMujoco.Tensor.t()

body_margin — MAX over all geom margins+gaps (nbody x 1)

mjtNum* in C, nbody × 1.

body_mass(model)

@spec body_mass(t()) :: ExMujoco.Tensor.t()

body_mass — mass (nbody x 1)

mjtNum* in C, nbody × 1.

body_mocapid(model)

@spec body_mocapid(t()) :: ExMujoco.Tensor.t()

body_mocapid — id of mocap data; -1: none (nbody x 1)

int* in C, nbody × 1.

body_parentid(model)

@spec body_parentid(t()) :: ExMujoco.Tensor.t()

body_parentid — id of body's parent (nbody x 1)

int* in C, nbody × 1.

body_plugin(model)

@spec body_plugin(t()) :: ExMujoco.Tensor.t()

body_plugin — plugin instance id; -1: not in use (nbody x 1)

int* in C, nbody × 1.

body_pos(model)

@spec body_pos(t()) :: ExMujoco.Tensor.t()

body_pos — position offset rel. to parent body (nbody x 3)

mjtNum* in C, nbody × 3.

body_quat(model)

@spec body_quat(t()) :: ExMujoco.Tensor.t()

body_quat — orientation offset rel. to parent body (nbody x 4)

mjtNum* in C, nbody × 4.

body_rootid(model)

@spec body_rootid(t()) :: ExMujoco.Tensor.t()

body_rootid — ancestor that is direct child of world (nbody x 1)

int* in C, nbody × 1.

body_sameframe(model)

@spec body_sameframe(t()) :: ExMujoco.Tensor.t()

body_sameframe — same frame as inertia (mjtSameframe) (nbody x 1)

mjtByte* in C, nbody × 1.

body_simple(model)

@spec body_simple(t()) :: ExMujoco.Tensor.t()

body_simple — 1: diag M; 2: diag M, sliders only (nbody x 1)

mjtByte* in C, nbody × 1.

body_subtreemass(model)

@spec body_subtreemass(t()) :: ExMujoco.Tensor.t()

body_subtreemass — mass of subtree starting at this body (nbody x 1)

mjtNum* in C, nbody × 1.

body_treeid(model)

@spec body_treeid(t()) :: ExMujoco.Tensor.t()

body_treeid — id of body's kinematic tree; -1: static (nbody x 1)

int* in C, nbody × 1.

body_user(model)

@spec body_user(t()) :: ExMujoco.Tensor.t()

body_user — user data (nbody x nuser_body)

mjtNum* in C, nbody × nuser_body@model.

body_weldid(model)

@spec body_weldid(t()) :: ExMujoco.Tensor.t()

body_weldid — top dof-less ancestor; mocap: own root (nbody x 1)

int* in C, nbody × 1.

bvh_aabb(model)

@spec bvh_aabb(t()) :: ExMujoco.Tensor.t()

bvh_aabb — local bounding box (center, size) (nbvhstatic x 6)

mjtNum* in C, nbvhstatic × 6.

bvh_child(model)

@spec bvh_child(t()) :: ExMujoco.Tensor.t()

bvh_child — left and right children in tree (nbvh x 2)

int* in C, nbvh × 2.

bvh_depth(model)

@spec bvh_depth(t()) :: ExMujoco.Tensor.t()

bvh_depth — depth in the bounding volume hierarchy (nbvh x 1)

int* in C, nbvh × 1.

bvh_nodeid(model)

@spec bvh_nodeid(t()) :: ExMujoco.Tensor.t()

bvh_nodeid — geom or elem id of node; -1: non-leaf (nbvh x 1)

int* in C, nbvh × 1.

cam_bodyid(model)

@spec cam_bodyid(t()) :: ExMujoco.Tensor.t()

cam_bodyid — id of camera's body (ncam x 1)

int* in C, ncam × 1.

cam_fovy(model)

@spec cam_fovy(t()) :: ExMujoco.Tensor.t()

cam_fovy — y field-of-view (ortho ? len : deg) (ncam x 1)

mjtNum* in C, ncam × 1.

cam_intrinsic(model)

@spec cam_intrinsic(t()) :: ExMujoco.Tensor.t()

cam_intrinsic — [focal length; principal point] (ncam x 4)

float* in C, ncam × 4.

cam_ipd(model)

@spec cam_ipd(t()) :: ExMujoco.Tensor.t()

cam_ipd — inter-pupilary distance (ncam x 1)

mjtNum* in C, ncam × 1.

cam_mat0(model)

@spec cam_mat0(t()) :: ExMujoco.Tensor.t()

cam_mat0 — global orientation in qpos0 (ncam x 9)

mjtNum* in C, ncam × 9.

cam_mode(model)

@spec cam_mode(t()) :: ExMujoco.Tensor.t()

cam_mode — camera tracking mode (mjtCamLight) (ncam x 1)

int* in C, ncam × 1.

cam_output(model)

@spec cam_output(t()) :: ExMujoco.Tensor.t()

cam_output — output types (mjtCamOut bit flags) (ncam x 1)

int* in C, ncam × 1.

cam_pos0(model)

@spec cam_pos0(t()) :: ExMujoco.Tensor.t()

cam_pos0 — global position rel. to body in qpos0 (ncam x 3)

mjtNum* in C, ncam × 3.

cam_pos(model)

@spec cam_pos(t()) :: ExMujoco.Tensor.t()

cam_pos — position rel. to body frame (ncam x 3)

mjtNum* in C, ncam × 3.

cam_poscom0(model)

@spec cam_poscom0(t()) :: ExMujoco.Tensor.t()

cam_poscom0 — global position rel. to sub-com in qpos0 (ncam x 3)

mjtNum* in C, ncam × 3.

cam_projection(model)

@spec cam_projection(t()) :: ExMujoco.Tensor.t()

cam_projection — projection type (mjtProjection) (ncam x 1)

int* in C, ncam × 1.

cam_quat(model)

@spec cam_quat(t()) :: ExMujoco.Tensor.t()

cam_quat — orientation rel. to body frame (ncam x 4)

mjtNum* in C, ncam × 4.

cam_resolution(model)

@spec cam_resolution(t()) :: ExMujoco.Tensor.t()

cam_resolution — resolution: pixels [width, height] (ncam x 2)

int* in C, ncam × 2.

cam_sensorsize(model)

@spec cam_sensorsize(t()) :: ExMujoco.Tensor.t()

cam_sensorsize — sensor size: length [width, height] (ncam x 2)

float* in C, ncam × 2.

cam_targetbodyid(model)

@spec cam_targetbodyid(t()) :: ExMujoco.Tensor.t()

cam_targetbodyid — id of targeted body; -1: none (ncam x 1)

int* in C, ncam × 1.

cam_user(model)

@spec cam_user(t()) :: ExMujoco.Tensor.t()

cam_user — user data (ncam x nuser_cam)

mjtNum* in C, ncam × nuser_cam@model.

d_colind(model)

@spec d_colind(t()) :: ExMujoco.Tensor.t()

D_colind — full inertia: column indices (nD x 1)

int* in C, nD × 1.

d_diag(model)

@spec d_diag(t()) :: ExMujoco.Tensor.t()

D_diag — full inertia: index of diagonal element (nv x 1)

int* in C, nv × 1.

d_rowadr(model)

@spec d_rowadr(t()) :: ExMujoco.Tensor.t()

D_rowadr — full inertia: row addresses (nv x 1)

int* in C, nv × 1.

d_rownnz(model)

@spec d_rownnz(t()) :: ExMujoco.Tensor.t()

D_rownnz — full inertia: non-zeros in each row (nv x 1)

int* in C, nv × 1.

dof_armature(model)

@spec dof_armature(t()) :: ExMujoco.Tensor.t()

dof_armature — dof armature inertia/mass (nv x 1)

mjtNum* in C, nv × 1.

dof_bodyid(model)

@spec dof_bodyid(t()) :: ExMujoco.Tensor.t()

dof_bodyid — id of dof's body (nv x 1)

int* in C, nv × 1.

dof_damping(model)

@spec dof_damping(t()) :: ExMujoco.Tensor.t()

dof_damping — linear damping coefficient (nv x 1)

mjtNum* in C, nv × 1.

dof_dampingpoly(model)

@spec dof_dampingpoly(t()) :: ExMujoco.Tensor.t()

dof_dampingpoly — high-order damping coefficients (nv x mjNPOLY)

mjtNum* in C, nv × mjNPOLY.

dof_frictionloss(model)

@spec dof_frictionloss(t()) :: ExMujoco.Tensor.t()

dof_frictionloss — dof friction loss (nv x 1)

mjtNum* in C, nv × 1.

dof_invweight0(model)

@spec dof_invweight0(t()) :: ExMujoco.Tensor.t()

dof_invweight0 — diag. inverse inertia in qpos0 (nv x 1)

mjtNum* in C, nv × 1.

dof_jntid(model)

@spec dof_jntid(t()) :: ExMujoco.Tensor.t()

dof_jntid — id of dof's joint (nv x 1)

int* in C, nv × 1.

dof_length(model)

@spec dof_length(t()) :: ExMujoco.Tensor.t()

dof_length — linear: 1; angular: approx. length scale (nv x 1)

mjtNum* in C, nv × 1.

dof_M0(model)

@spec dof_M0(t()) :: ExMujoco.Tensor.t()

dof_M0 — diag. inertia in qpos0 (nv x 1)

mjtNum* in C, nv × 1.

dof_Madr(model)

@spec dof_Madr(t()) :: ExMujoco.Tensor.t()

dof_Madr — dof address in M-diagonal (nv x 1)

int* in C, nv × 1.

dof_parentid(model)

@spec dof_parentid(t()) :: ExMujoco.Tensor.t()

dof_parentid — id of dof's parent; -1: none (nv x 1)

int* in C, nv × 1.

dof_simplenum(model)

@spec dof_simplenum(t()) :: ExMujoco.Tensor.t()

dof_simplenum — number of consecutive simple dofs (nv x 1)

int* in C, nv × 1.

dof_solimp(model)

@spec dof_solimp(t()) :: ExMujoco.Tensor.t()

dof_solimp — constraint solver impedance:frictionloss (nv x mjNIMP)

mjtNum* in C, nv × mjNIMP.

dof_solref(model)

@spec dof_solref(t()) :: ExMujoco.Tensor.t()

dof_solref — constraint solver reference:frictionloss (nv x mjNREF)

mjtNum* in C, nv × mjNREF.

dof_treeid(model)

@spec dof_treeid(t()) :: ExMujoco.Tensor.t()

dof_treeid — id of dof's kinematic tree (nv x 1)

int* in C, nv × 1.

efm0_dofid(model)

@spec efm0_dofid(t()) :: ExMujoco.Tensor.t()

efm0_dofid — constant metric factor row->dof address (nefm0dof x 1)

int* in C, nefm0dof × 1.

efm0_L(model)

@spec efm0_L(t()) :: ExMujoco.Tensor.t()

efm0_L — factor of M + (dt^2+dtd)K_bend (nefm0L x 1)

mjtNum* in C, nefm0L × 1.

efm0_L_colind(model)

@spec efm0_L_colind(t()) :: ExMujoco.Tensor.t()

efm0_L_colind — constant metric factor column indices (nefm0L x 1)

int* in C, nefm0L × 1.

efm0_L_rowadr(model)

@spec efm0_L_rowadr(t()) :: ExMujoco.Tensor.t()

efm0_L_rowadr — constant metric factor row addresses (nefm0dof x 1)

int* in C, nefm0dof × 1.

efm0_L_rownnz(model)

@spec efm0_L_rownnz(t()) :: ExMujoco.Tensor.t()

efm0_L_rownnz — constant metric factor row nonzeros (nefm0dof x 1)

int* in C, nefm0dof × 1.

efmC_perm(model)

@spec efmC_perm(t()) :: ExMujoco.Tensor.t()

efmC_perm — sparse factor order: vertex dof or -1 (nefmCvert x 1)

int* in C, nefmCvert × 1.

eq_active0(model)

@spec eq_active0(t()) :: ExMujoco.Tensor.t()

eq_active0 — initial enable/disable constraint state (neq x 1)

mjtBool* in C, neq × 1.

eq_data(model)

@spec eq_data(t()) :: ExMujoco.Tensor.t()

eq_data — numeric data for constraint (neq x mjNEQDATA)

mjtNum* in C, neq × mjNEQDATA.

eq_obj1id(model)

@spec eq_obj1id(t()) :: ExMujoco.Tensor.t()

eq_obj1id — id of object 1 (neq x 1)

int* in C, neq × 1.

eq_obj2id(model)

@spec eq_obj2id(t()) :: ExMujoco.Tensor.t()

eq_obj2id — id of object 2 (neq x 1)

int* in C, neq × 1.

eq_objtype(model)

@spec eq_objtype(t()) :: ExMujoco.Tensor.t()

eq_objtype — type of both objects (mjtObj) (neq x 1)

int* in C, neq × 1.

eq_solimp(model)

@spec eq_solimp(t()) :: ExMujoco.Tensor.t()

eq_solimp — constraint solver impedance (neq x mjNIMP)

mjtNum* in C, neq × mjNIMP.

eq_solref(model)

@spec eq_solref(t()) :: ExMujoco.Tensor.t()

eq_solref — constraint solver reference (neq x mjNREF)

mjtNum* in C, neq × mjNREF.

eq_type(model)

@spec eq_type(t()) :: ExMujoco.Tensor.t()

eq_type — constraint type (mjtEq) (neq x 1)

int* in C, neq × 1.

exclude_signature(model)

@spec exclude_signature(t()) :: ExMujoco.Tensor.t()

exclude_signature — body1 << 16 + body2 (nexclude x 1)

int* in C, nexclude × 1.

flex_activelayers(model)

@spec flex_activelayers(t()) :: ExMujoco.Tensor.t()

flex_activelayers — number of active element layers, 3D only (nflex x 1)

int* in C, nflex × 1.

flex_bending(model)

@spec flex_bending(t()) :: ExMujoco.Tensor.t()

flex_bending — bending stiffness (nflexbending x 1)

mjtNum* in C, nflexbending × 1.

flex_bendingadr(model)

@spec flex_bendingadr(t()) :: ExMujoco.Tensor.t()

flex_bendingadr — first bending data address (nflex x 1)

int* in C, nflex × 1.

flex_bvhadr(model)

@spec flex_bvhadr(t()) :: ExMujoco.Tensor.t()

flex_bvhadr — address of bvh root; -1: no bvh (nflex x 1)

int* in C, nflex × 1.

flex_bvhnum(model)

@spec flex_bvhnum(t()) :: ExMujoco.Tensor.t()

flex_bvhnum — number of bounding volumes (nflex x 1)

int* in C, nflex × 1.

flex_cellnum(model)

@spec flex_cellnum(t()) :: ExMujoco.Tensor.t()

flex_cellnum — finite cell num per dimension (nflex x 3)

int* in C, nflex × 3.

flex_centered(model)

@spec flex_centered(t()) :: ExMujoco.Tensor.t()

flex_centered — are all vertex coordinates (0,0,0) (nflex x 1)

mjtBool* in C, nflex × 1.

flex_conaffinity(model)

@spec flex_conaffinity(t()) :: ExMujoco.Tensor.t()

flex_conaffinity — flex contact affinity (nflex x 1)

int* in C, nflex × 1.

flex_condim(model)

@spec flex_condim(t()) :: ExMujoco.Tensor.t()

flex_condim — contact dimensionality (1, 3, 4, 6) (nflex x 1)

int* in C, nflex × 1.

flex_contype(model)

@spec flex_contype(t()) :: ExMujoco.Tensor.t()

flex_contype — flex contact type (nflex x 1)

int* in C, nflex × 1.

flex_damping(model)

@spec flex_damping(t()) :: ExMujoco.Tensor.t()

flex_damping — Rayleigh's damping coefficient (nflex x 1)

mjtNum* in C, nflex × 1.

flex_dim(model)

@spec flex_dim(t()) :: ExMujoco.Tensor.t()

flex_dim — 1: lines, 2: triangles, 3: tetrahedra (nflex x 1)

int* in C, nflex × 1.

flex_edge(model)

@spec flex_edge(t()) :: ExMujoco.Tensor.t()

flex_edge — edge vertex ids (2 per edge) (nflexedge x 2)

int* in C, nflexedge × 2.

flex_edgeadr(model)

@spec flex_edgeadr(t()) :: ExMujoco.Tensor.t()

flex_edgeadr — first edge address (nflex x 1)

int* in C, nflex × 1.

flex_edgedamping(model)

@spec flex_edgedamping(t()) :: ExMujoco.Tensor.t()

flex_edgedamping — edge damping (nflex x 1)

mjtNum* in C, nflex × 1.

flex_edgeequality(model)

@spec flex_edgeequality(t()) :: ExMujoco.Tensor.t()

flex_edgeequality — 0:none, 1:edges, 3:strain (nflex x 1)

int* in C, nflex × 1.

flex_edgeflap(model)

@spec flex_edgeflap(t()) :: ExMujoco.Tensor.t()

flex_edgeflap — adjacent vertex ids (dim=2 only) (nflexedge x 2)

int* in C, nflexedge × 2.

flex_edgenum(model)

@spec flex_edgenum(t()) :: ExMujoco.Tensor.t()

flex_edgenum — number of edges (nflex x 1)

int* in C, nflex × 1.

flex_edgestiffness(model)

@spec flex_edgestiffness(t()) :: ExMujoco.Tensor.t()

flex_edgestiffness — edge stiffness (nflex x 1)

mjtNum* in C, nflex × 1.

flex_elem(model)

@spec flex_elem(t()) :: ExMujoco.Tensor.t()

flex_elem — element vertex ids (dim+1 per elem) (nflexelemdata x 1)

int* in C, nflexelemdata × 1.

flex_elemadr(model)

@spec flex_elemadr(t()) :: ExMujoco.Tensor.t()

flex_elemadr — first element address (nflex x 1)

int* in C, nflex × 1.

flex_elemdataadr(model)

@spec flex_elemdataadr(t()) :: ExMujoco.Tensor.t()

flex_elemdataadr — first element vertex id address (nflex x 1)

int* in C, nflex × 1.

flex_elemedge(model)

@spec flex_elemedge(t()) :: ExMujoco.Tensor.t()

flex_elemedge — element edge ids (nflexelemedge x 1)

int* in C, nflexelemedge × 1.

flex_elemedgeadr(model)

@spec flex_elemedgeadr(t()) :: ExMujoco.Tensor.t()

flex_elemedgeadr — first element edge id address (nflex x 1)

int* in C, nflex × 1.

flex_elemlayer(model)

@spec flex_elemlayer(t()) :: ExMujoco.Tensor.t()

flex_elemlayer — element distance from surface, 3D only (nflexelem x 1)

int* in C, nflexelem × 1.

flex_elemnum(model)

@spec flex_elemnum(t()) :: ExMujoco.Tensor.t()

flex_elemnum — number of elements (nflex x 1)

int* in C, nflex × 1.

flex_elemtexcoord(model)

@spec flex_elemtexcoord(t()) :: ExMujoco.Tensor.t()

flex_elemtexcoord — element texture coordinates (dim+1) (nflexelemdata x 1)

int* in C, nflexelemdata × 1.

flex_flatskin(model)

@spec flex_flatskin(t()) :: ExMujoco.Tensor.t()

flex_flatskin — render flex skin with flat shading (nflex x 1)

mjtBool* in C, nflex × 1.

flex_friction(model)

@spec flex_friction(t()) :: ExMujoco.Tensor.t()

flex_friction — friction for (slide, spin, roll) (nflex x 3)

mjtNum* in C, nflex × 3.

flex_gap(model)

@spec flex_gap(t()) :: ExMujoco.Tensor.t()

flex_gap — additional contact detection buffer (nflex x 1)

mjtNum* in C, nflex × 1.

flex_group(model)

@spec flex_group(t()) :: ExMujoco.Tensor.t()

flex_group — group for visibility (nflex x 1)

int* in C, nflex × 1.

flex_interp(model)

@spec flex_interp(t()) :: ExMujoco.Tensor.t()

flex_interp — interpolation (0: vertex, 1: nodes) (nflex x 1)

int* in C, nflex × 1.

flex_margin(model)

@spec flex_margin(t()) :: ExMujoco.Tensor.t()

flex_margin — geometric inflation for contact (nflex x 1)

mjtNum* in C, nflex × 1.

flex_matid(model)

@spec flex_matid(t()) :: ExMujoco.Tensor.t()

flex_matid — material id for rendering (nflexelem x 1)

int* in C, nflexelem × 1.

flex_node0(model)

@spec flex_node0(t()) :: ExMujoco.Tensor.t()

flex_node0 — Cartesian node positions in qpos0 (nflexnode x 3)

mjtNum* in C, nflexnode × 3.

flex_node(model)

@spec flex_node(t()) :: ExMujoco.Tensor.t()

flex_node — node positions in local body frames (nflexnode x 3)

mjtNum* in C, nflexnode × 3.

flex_nodeadr(model)

@spec flex_nodeadr(t()) :: ExMujoco.Tensor.t()

flex_nodeadr — first node address (nflex x 1)

int* in C, nflex × 1.

flex_nodebodyid(model)

@spec flex_nodebodyid(t()) :: ExMujoco.Tensor.t()

flex_nodebodyid — node body ids (nflexnode x 1)

int* in C, nflexnode × 1.

flex_nodenum(model)

@spec flex_nodenum(t()) :: ExMujoco.Tensor.t()

flex_nodenum — number of nodes (nflex x 1)

int* in C, nflex × 1.

flex_passive(model)

@spec flex_passive(t()) :: ExMujoco.Tensor.t()

flex_passive — passive collisions enabled (nflex x 1)

int* in C, nflex × 1.

flex_plasticadr(model)

@spec flex_plasticadr(t()) :: ExMujoco.Tensor.t()

flex_plasticadr — plastic state address; -1: elastic (nflex x 1)

int* in C, nflex × 1.

flex_plasticmode(model)

@spec flex_plasticmode(t()) :: ExMujoco.Tensor.t()

flex_plasticmode — plastic state bits; 1: bend, 2: stretch (nflex x 1)

int* in C, nflex × 1.

flex_priority(model)

@spec flex_priority(t()) :: ExMujoco.Tensor.t()

flex_priority — flex contact priority (nflex x 1)

int* in C, nflex × 1.

flex_radius(model)

@spec flex_radius(t()) :: ExMujoco.Tensor.t()

flex_radius — radius around primitive element (nflex x 1)

mjtNum* in C, nflex × 1.

flex_rgba(model)

@spec flex_rgba(t()) :: ExMujoco.Tensor.t()

flex_rgba — rgba when material is omitted (nflex x 4)

float* in C, nflex × 4.

flex_rigid(model)

@spec flex_rigid(t()) :: ExMujoco.Tensor.t()

flex_rigid — are all vertices in the same body (nflex x 1)

mjtBool* in C, nflex × 1.

flex_selfcollide(model)

@spec flex_selfcollide(t()) :: ExMujoco.Tensor.t()

flex_selfcollide — self collision mode (mjtFlexSelf) (nflex x 1)

int* in C, nflex × 1.

flex_shell(model)

@spec flex_shell(t()) :: ExMujoco.Tensor.t()

flex_shell — shell fragment vertex ids (dim per frag) (nflexshelldata x 1)

int* in C, nflexshelldata × 1.

flex_shelldataadr(model)

@spec flex_shelldataadr(t()) :: ExMujoco.Tensor.t()

flex_shelldataadr — first shell data address (nflex x 1)

int* in C, nflex × 1.

flex_shellnum(model)

@spec flex_shellnum(t()) :: ExMujoco.Tensor.t()

flex_shellnum — number of shells (nflex x 1)

int* in C, nflex × 1.

flex_size(model)

@spec flex_size(t()) :: ExMujoco.Tensor.t()

flex_size — vertex bounding box half sizes in qpos0 (nflex x 3)

mjtNum* in C, nflex × 3.

flex_solimp(model)

@spec flex_solimp(t()) :: ExMujoco.Tensor.t()

flex_solimp — constraint solver impedance: contact (nflex x mjNIMP)

mjtNum* in C, nflex × mjNIMP.

flex_solmix(model)

@spec flex_solmix(t()) :: ExMujoco.Tensor.t()

flex_solmix — mix coef for solref/imp in contact pair (nflex x 1)

mjtNum* in C, nflex × 1.

flex_solref(model)

@spec flex_solref(t()) :: ExMujoco.Tensor.t()

flex_solref — constraint solver reference: contact (nflex x mjNREF)

mjtNum* in C, nflex × mjNREF.

flex_stiffness(model)

@spec flex_stiffness(t()) :: ExMujoco.Tensor.t()

flex_stiffness — finite element stiffness matrix (nflexstiffness x 1)

mjtNum* in C, nflexstiffness × 1.

flex_stiffnessadr(model)

@spec flex_stiffnessadr(t()) :: ExMujoco.Tensor.t()

flex_stiffnessadr — stiffness matrix address (nflex x 1)

int* in C, nflex × 1.

flex_texcoord(model)

@spec flex_texcoord(t()) :: ExMujoco.Tensor.t()

flex_texcoord — vertex texture coordinates (nflextexcoord x 2)

float* in C, nflextexcoord × 2.

flex_texcoordadr(model)

@spec flex_texcoordadr(t()) :: ExMujoco.Tensor.t()

flex_texcoordadr — address in flex_texcoord; -1: none (nflex x 1)

int* in C, nflex × 1.

flex_vert0(model)

@spec flex_vert0(t()) :: ExMujoco.Tensor.t()

flex_vert0 — vertex positions in qpos0 on [0, 1]^d (nflexvert x 3)

mjtNum* in C, nflexvert × 3.

flex_vert(model)

@spec flex_vert(t()) :: ExMujoco.Tensor.t()

flex_vert — vertex positions in local body frames (nflexvert x 3)

mjtNum* in C, nflexvert × 3.

flex_vertadr(model)

@spec flex_vertadr(t()) :: ExMujoco.Tensor.t()

flex_vertadr — first vertex address (nflex x 1)

int* in C, nflex × 1.

flex_vertbodyid(model)

@spec flex_vertbodyid(t()) :: ExMujoco.Tensor.t()

flex_vertbodyid — vertex body ids (nflexvert x 1)

int* in C, nflexvert × 1.

flex_vertcell(model)

@spec flex_vertcell(t()) :: ExMujoco.Tensor.t()

flex_vertcell — finite cell index for vertex; -1: none (nflexvert x 1)

int* in C, nflexvert × 1.

flex_vertnum(model)

@spec flex_vertnum(t()) :: ExMujoco.Tensor.t()

flex_vertnum — number of vertices (nflex x 1)

int* in C, nflex × 1.

flex_yield(model)

@spec flex_yield(t()) :: ExMujoco.Tensor.t()

flex_yield — yield strain (stretch, bend); 0: elastic (nflex x 2)

mjtNum* in C, nflex × 2.

flexedge_invweight0(model)

@spec flexedge_invweight0(t()) :: ExMujoco.Tensor.t()

flexedge_invweight0 — edge inv. weight in qpos0 (nflexedge x 1)

mjtNum* in C, nflexedge × 1.

flexedge_J_colind(model)

@spec flexedge_J_colind(t()) :: ExMujoco.Tensor.t()

flexedge_J_colind — column indices in sparse Jacobian (nJfe x 1)

int* in C, nJfe × 1.

flexedge_J_rowadr(model)

@spec flexedge_J_rowadr(t()) :: ExMujoco.Tensor.t()

flexedge_J_rowadr — row start address in colind array (nflexedge x 1)

int* in C, nflexedge × 1.

flexedge_J_rownnz(model)

@spec flexedge_J_rownnz(t()) :: ExMujoco.Tensor.t()

flexedge_J_rownnz — number of non-zeros in Jacobian row (nflexedge x 1)

int* in C, nflexedge × 1.

flexedge_length0(model)

@spec flexedge_length0(t()) :: ExMujoco.Tensor.t()

flexedge_length0 — edge lengths in qpos0 (nflexedge x 1)

mjtNum* in C, nflexedge × 1.

flexedge_rigid(model)

@spec flexedge_rigid(t()) :: ExMujoco.Tensor.t()

flexedge_rigid — are both edge vertices in same body (nflexedge x 1)

mjtBool* in C, nflexedge × 1.

flg_adhesion(model)

@spec flg_adhesion(t()) :: integer()

flg_adhesion — whether any geom or pair has nonzero adhesion

mjtBool in C, read as an integer.

flg_gravcomp(model)

@spec flg_gravcomp(t()) :: integer()

flg_gravcomp — whether any body has nonzero gravcomp

mjtBool in C, read as an integer.

flg_surfacevel(model)

@spec flg_surfacevel(t()) :: integer()

flg_surfacevel — whether any geom has nonzero surfacevel

mjtBool in C, read as an integer.

geom_aabb(model)

@spec geom_aabb(t()) :: ExMujoco.Tensor.t()

geom_aabb — bounding box, (center, size) (ngeom x 6)

mjtNum* in C, ngeom × 6.

geom_adhesion(model)

@spec geom_adhesion(t()) :: ExMujoco.Tensor.t()

geom_adhesion — adhesive force of contacts (ngeom x 1)

mjtNum* in C, ngeom × 1.

geom_bodyid(model)

@spec geom_bodyid(t()) :: ExMujoco.Tensor.t()

geom_bodyid — id of geom's body (ngeom x 1)

int* in C, ngeom × 1.

geom_castshadow(model)

@spec geom_castshadow(t()) :: ExMujoco.Tensor.t()

geom_castshadow — does geom cast shadows (ngeom x 1)

mjtBool* in C, ngeom × 1.

geom_conaffinity(model)

@spec geom_conaffinity(t()) :: ExMujoco.Tensor.t()

geom_conaffinity — geom contact affinity (ngeom x 1)

int* in C, ngeom × 1.

geom_condim(model)

@spec geom_condim(t()) :: ExMujoco.Tensor.t()

geom_condim — contact dimensionality (1, 3, 4, 6) (ngeom x 1)

int* in C, ngeom × 1.

geom_contype(model)

@spec geom_contype(t()) :: ExMujoco.Tensor.t()

geom_contype — geom contact type (ngeom x 1)

int* in C, ngeom × 1.

geom_dataid(model)

@spec geom_dataid(t()) :: ExMujoco.Tensor.t()

geom_dataid — id of geom's mesh/hfield; -1: none (ngeom x 1)

int* in C, ngeom × 1.

geom_fluid(model)

@spec geom_fluid(t()) :: ExMujoco.Tensor.t()

geom_fluid — fluid interaction parameters (ngeom x mjNFLUID)

mjtNum* in C, ngeom × mjNFLUID.

geom_friction(model)

@spec geom_friction(t()) :: ExMujoco.Tensor.t()

geom_friction — friction for (slide, spin, roll) (ngeom x 3)

mjtNum* in C, ngeom × 3.

geom_gap(model)

@spec geom_gap(t()) :: ExMujoco.Tensor.t()

geom_gap — additional contact detection buffer (ngeom x 1)

mjtNum* in C, ngeom × 1.

geom_group(model)

@spec geom_group(t()) :: ExMujoco.Tensor.t()

geom_group — group for visibility (ngeom x 1)

int* in C, ngeom × 1.

geom_margin(model)

@spec geom_margin(t()) :: ExMujoco.Tensor.t()

geom_margin — geometric inflation for contact (ngeom x 1)

mjtNum* in C, ngeom × 1.

geom_matid(model)

@spec geom_matid(t()) :: ExMujoco.Tensor.t()

geom_matid — material id for rendering; -1: none (ngeom x 1)

int* in C, ngeom × 1.

geom_plugin(model)

@spec geom_plugin(t()) :: ExMujoco.Tensor.t()

geom_plugin — plugin instance id; -1: not in use (ngeom x 1)

int* in C, ngeom × 1.

geom_pos(model)

@spec geom_pos(t()) :: ExMujoco.Tensor.t()

geom_pos — local position offset rel. to body (ngeom x 3)

mjtNum* in C, ngeom × 3.

geom_priority(model)

@spec geom_priority(t()) :: ExMujoco.Tensor.t()

geom_priority — geom contact priority (ngeom x 1)

int* in C, ngeom × 1.

geom_quat(model)

@spec geom_quat(t()) :: ExMujoco.Tensor.t()

geom_quat — local orientation offset rel. to body (ngeom x 4)

mjtNum* in C, ngeom × 4.

geom_rbound(model)

@spec geom_rbound(t()) :: ExMujoco.Tensor.t()

geom_rbound — radius of bounding sphere (ngeom x 1)

mjtNum* in C, ngeom × 1.

geom_rgba(model)

@spec geom_rgba(t()) :: ExMujoco.Tensor.t()

geom_rgba — rgba when material is omitted (ngeom x 4)

float* in C, ngeom × 4.

geom_sameframe(model)

@spec geom_sameframe(t()) :: ExMujoco.Tensor.t()

geom_sameframe — same frame as body (mjtSameframe) (ngeom x 1)

mjtByte* in C, ngeom × 1.

geom_size(model)

@spec geom_size(t()) :: ExMujoco.Tensor.t()

geom_size — geom-specific size parameters (ngeom x 3)

mjtNum* in C, ngeom × 3.

geom_solimp(model)

@spec geom_solimp(t()) :: ExMujoco.Tensor.t()

geom_solimp — constraint solver impedance: contact (ngeom x mjNIMP)

mjtNum* in C, ngeom × mjNIMP.

geom_solmix(model)

@spec geom_solmix(t()) :: ExMujoco.Tensor.t()

geom_solmix — mixing coef for solref/imp in geom pair (ngeom x 1)

mjtNum* in C, ngeom × 1.

geom_solref(model)

@spec geom_solref(t()) :: ExMujoco.Tensor.t()

geom_solref — constraint solver reference: contact (ngeom x mjNREF)

mjtNum* in C, ngeom × mjNREF.

geom_surfacevel(model)

@spec geom_surfacevel(t()) :: ExMujoco.Tensor.t()

geom_surfacevel — surface velocity in local frame: lin,ang (ngeom x 6)

mjtNum* in C, ngeom × 6.

geom_type(model)

@spec geom_type(t()) :: ExMujoco.Tensor.t()

geom_type — geometric type (mjtGeom) (ngeom x 1)

int* in C, ngeom × 1.

geom_user(model)

@spec geom_user(t()) :: ExMujoco.Tensor.t()

geom_user — user data (ngeom x nuser_geom)

mjtNum* in C, ngeom × nuser_geom@model.

hfield_adr(model)

@spec hfield_adr(t()) :: ExMujoco.Tensor.t()

hfield_adr — address in hfield_data (nhfield x 1)

int* in C, nhfield × 1.

hfield_data(model)

@spec hfield_data(t()) :: ExMujoco.Tensor.t()

hfield_data — elevation data (nhfielddata x 1)

float* in C, nhfielddata × 1.

hfield_ncol(model)

@spec hfield_ncol(t()) :: ExMujoco.Tensor.t()

hfield_ncol — number of columns in grid (nhfield x 1)

int* in C, nhfield × 1.

hfield_nrow(model)

@spec hfield_nrow(t()) :: ExMujoco.Tensor.t()

hfield_nrow — number of rows in grid (nhfield x 1)

int* in C, nhfield × 1.

hfield_pathadr(model)

@spec hfield_pathadr(t()) :: ExMujoco.Tensor.t()

hfield_pathadr — address of hfield asset path; -1: none (nhfield x 1)

int* in C, nhfield × 1.

hfield_size(model)

@spec hfield_size(t()) :: ExMujoco.Tensor.t()

hfield_size — (x, y, z_top, z_bottom) (nhfield x 4)

mjtNum* in C, nhfield × 4.

jnt_actfrclimited(model)

@spec jnt_actfrclimited(t()) :: ExMujoco.Tensor.t()

jnt_actfrclimited — does joint have actuator force limits (njnt x 1)

mjtBool* in C, njnt × 1.

jnt_actfrcrange(model)

@spec jnt_actfrcrange(t()) :: ExMujoco.Tensor.t()

jnt_actfrcrange — range of total actuator force (njnt x 2)

mjtNum* in C, njnt × 2.

jnt_actgravcomp(model)

@spec jnt_actgravcomp(t()) :: ExMujoco.Tensor.t()

jnt_actgravcomp — is gravcomp force applied via actuators (njnt x 1)

mjtBool* in C, njnt × 1.

jnt_actuatorid(model)

@spec jnt_actuatorid(t()) :: ExMujoco.Tensor.t()

jnt_actuatorid — actuator contributing damping / armature (njnt x 1)

int* in C, njnt × 1.

jnt_axis(model)

@spec jnt_axis(t()) :: ExMujoco.Tensor.t()

jnt_axis — local joint axis (njnt x 3)

mjtNum* in C, njnt × 3.

jnt_bodyid(model)

@spec jnt_bodyid(t()) :: ExMujoco.Tensor.t()

jnt_bodyid — id of joint's body (njnt x 1)

int* in C, njnt × 1.

jnt_dofadr(model)

@spec jnt_dofadr(t()) :: ExMujoco.Tensor.t()

jnt_dofadr — start addr in 'qvel' for joint's data (njnt x 1)

int* in C, njnt × 1.

jnt_group(model)

@spec jnt_group(t()) :: ExMujoco.Tensor.t()

jnt_group — group for visibility (njnt x 1)

int* in C, njnt × 1.

jnt_limited(model)

@spec jnt_limited(t()) :: ExMujoco.Tensor.t()

jnt_limited — does joint have limits (njnt x 1)

mjtBool* in C, njnt × 1.

jnt_margin(model)

@spec jnt_margin(t()) :: ExMujoco.Tensor.t()

jnt_margin — min distance for limit detection (njnt x 1)

mjtNum* in C, njnt × 1.

jnt_plasticadr(model)

@spec jnt_plasticadr(t()) :: ExMujoco.Tensor.t()

jnt_plasticadr — start addr in plastic state (-1: none) (njnt x 1)

int* in C, njnt × 1.

jnt_pos(model)

@spec jnt_pos(t()) :: ExMujoco.Tensor.t()

jnt_pos — local anchor position (njnt x 3)

mjtNum* in C, njnt × 3.

jnt_qposadr(model)

@spec jnt_qposadr(t()) :: ExMujoco.Tensor.t()

jnt_qposadr — start addr in 'qpos' for joint's data (njnt x 1)

int* in C, njnt × 1.

jnt_range(model)

@spec jnt_range(t()) :: ExMujoco.Tensor.t()

jnt_range — joint limits (njnt x 2)

mjtNum* in C, njnt × 2.

jnt_solimp(model)

@spec jnt_solimp(t()) :: ExMujoco.Tensor.t()

jnt_solimp — constraint solver impedance: limit (njnt x mjNIMP)

mjtNum* in C, njnt × mjNIMP.

jnt_solref(model)

@spec jnt_solref(t()) :: ExMujoco.Tensor.t()

jnt_solref — constraint solver reference: limit (njnt x mjNREF)

mjtNum* in C, njnt × mjNREF.

jnt_springyield(model)

@spec jnt_springyield(t()) :: ExMujoco.Tensor.t()

jnt_springyield — plastic yield threshold (njnt x 1)

mjtNum* in C, njnt × 1.

jnt_stiffness(model)

@spec jnt_stiffness(t()) :: ExMujoco.Tensor.t()

jnt_stiffness — linear stiffness coefficient (njnt x 1)

mjtNum* in C, njnt × 1.

jnt_stiffnesspoly(model)

@spec jnt_stiffnesspoly(t()) :: ExMujoco.Tensor.t()

jnt_stiffnesspoly — high-order stiffness coefficients (njnt x mjNPOLY)

mjtNum* in C, njnt × mjNPOLY.

jnt_type(model)

@spec jnt_type(t()) :: ExMujoco.Tensor.t()

jnt_type — type of joint (mjtJoint) (njnt x 1)

int* in C, njnt × 1.

jnt_user(model)

@spec jnt_user(t()) :: ExMujoco.Tensor.t()

jnt_user — user data (njnt x nuser_jnt)

mjtNum* in C, njnt × nuser_jnt@model.

key_act(model)

@spec key_act(t()) :: ExMujoco.Tensor.t()

key_act — key activation (nkey x na)

mjtNum* in C, nkey × na@model.

key_ctrl(model)

@spec key_ctrl(t()) :: ExMujoco.Tensor.t()

key_ctrl — key control (nkey x nu)

mjtNum* in C, nkey × nu@model.

key_mpos(model)

@spec key_mpos(t()) :: ExMujoco.Tensor.t()

key_mpos — key mocap position (nkey x nmocap*3)

mjtNum* in C, nkey × nmocap@model*3.

key_mquat(model)

@spec key_mquat(t()) :: ExMujoco.Tensor.t()

key_mquat — key mocap quaternion (nkey x nmocap*4)

mjtNum* in C, nkey × nmocap@model*4.

key_plastic(model)

@spec key_plastic(t()) :: ExMujoco.Tensor.t()

key_plastic — key plastic state (nkey x nplastic)

mjtNum* in C, nkey × nplastic@model.

key_qpos(model)

@spec key_qpos(t()) :: ExMujoco.Tensor.t()

key_qpos — key position (nkey x nq)

mjtNum* in C, nkey × nq@model.

key_qvel(model)

@spec key_qvel(t()) :: ExMujoco.Tensor.t()

key_qvel — key velocity (nkey x nv)

mjtNum* in C, nkey × nv@model.

key_time(model)

@spec key_time(t()) :: ExMujoco.Tensor.t()

key_time — key time (nkey x 1)

mjtNum* in C, nkey × 1.

light_active(model)

@spec light_active(t()) :: ExMujoco.Tensor.t()

light_active — is light on (nlight x 1)

mjtBool* in C, nlight × 1.

light_ambient(model)

@spec light_ambient(t()) :: ExMujoco.Tensor.t()

light_ambient — ambient rgb (alpha=1) (nlight x 3)

float* in C, nlight × 3.

light_attenuation(model)

@spec light_attenuation(t()) :: ExMujoco.Tensor.t()

light_attenuation — OpenGL attenuation (quadratic model) (nlight x 3)

float* in C, nlight × 3.

light_bodyid(model)

@spec light_bodyid(t()) :: ExMujoco.Tensor.t()

light_bodyid — id of light's body (nlight x 1)

int* in C, nlight × 1.

light_bulbradius(model)

@spec light_bulbradius(t()) :: ExMujoco.Tensor.t()

light_bulbradius — light radius for soft shadows (nlight x 1)

float* in C, nlight × 1.

light_castshadow(model)

@spec light_castshadow(t()) :: ExMujoco.Tensor.t()

light_castshadow — does light cast shadows (nlight x 1)

mjtBool* in C, nlight × 1.

light_cutoff(model)

@spec light_cutoff(t()) :: ExMujoco.Tensor.t()

light_cutoff — OpenGL cutoff (nlight x 1)

float* in C, nlight × 1.

light_diffuse(model)

@spec light_diffuse(t()) :: ExMujoco.Tensor.t()

light_diffuse — diffuse rgb (alpha=1) (nlight x 3)

float* in C, nlight × 3.

light_dir0(model)

@spec light_dir0(t()) :: ExMujoco.Tensor.t()

light_dir0 — global direction in qpos0 (nlight x 3)

mjtNum* in C, nlight × 3.

light_dir(model)

@spec light_dir(t()) :: ExMujoco.Tensor.t()

light_dir — direction rel. to body frame (nlight x 3)

mjtNum* in C, nlight × 3.

light_exponent(model)

@spec light_exponent(t()) :: ExMujoco.Tensor.t()

light_exponent — OpenGL exponent (nlight x 1)

float* in C, nlight × 1.

light_intensity(model)

@spec light_intensity(t()) :: ExMujoco.Tensor.t()

light_intensity — intensity, in candela (nlight x 1)

float* in C, nlight × 1.

light_mode(model)

@spec light_mode(t()) :: ExMujoco.Tensor.t()

light_mode — light tracking mode (mjtCamLight) (nlight x 1)

int* in C, nlight × 1.

light_pos0(model)

@spec light_pos0(t()) :: ExMujoco.Tensor.t()

light_pos0 — global position rel. to body in qpos0 (nlight x 3)

mjtNum* in C, nlight × 3.

light_pos(model)

@spec light_pos(t()) :: ExMujoco.Tensor.t()

light_pos — position rel. to body frame (nlight x 3)

mjtNum* in C, nlight × 3.

light_poscom0(model)

@spec light_poscom0(t()) :: ExMujoco.Tensor.t()

light_poscom0 — global position rel. to sub-com in qpos0 (nlight x 3)

mjtNum* in C, nlight × 3.

light_range(model)

@spec light_range(t()) :: ExMujoco.Tensor.t()

light_range — range of effectiveness (nlight x 1)

float* in C, nlight × 1.

light_softness(model)

@spec light_softness(t()) :: ExMujoco.Tensor.t()

light_softness — spotlight edge softness (nlight x 1)

float* in C, nlight × 1.

light_specular(model)

@spec light_specular(t()) :: ExMujoco.Tensor.t()

light_specular — specular rgb (alpha=1) (nlight x 3)

float* in C, nlight × 3.

light_targetbodyid(model)

@spec light_targetbodyid(t()) :: ExMujoco.Tensor.t()

light_targetbodyid — id of targeted body; -1: none (nlight x 1)

int* in C, nlight × 1.

light_texid(model)

@spec light_texid(t()) :: ExMujoco.Tensor.t()

light_texid — texture id for image lights (nlight x 1)

int* in C, nlight × 1.

light_type(model)

@spec light_type(t()) :: ExMujoco.Tensor.t()

light_type — spot, directional, etc. (mjtLightType) (nlight x 1)

int* in C, nlight × 1.

m_colind(model)

@spec m_colind(t()) :: ExMujoco.Tensor.t()

M_colind — reduced inertia: column indices (nC x 1)

int* in C, nC × 1.

m_rowadr(model)

@spec m_rowadr(t()) :: ExMujoco.Tensor.t()

M_rowadr — reduced inertia: row addresses (nv x 1)

int* in C, nv × 1.

m_rownnz(model)

@spec m_rownnz(t()) :: ExMujoco.Tensor.t()

M_rownnz — reduced inertia: non-zeros in each row (nv x 1)

int* in C, nv × 1.

mapD2M(model)

@spec mapD2M(t()) :: ExMujoco.Tensor.t()

mapD2M — index mapping from D to M (nC x 1)

int* in C, nC × 1.

mapM2D(model)

@spec mapM2D(t()) :: ExMujoco.Tensor.t()

mapM2D — index mapping from M to D (nD x 1)

int* in C, nD × 1.

mapM2M(model)

@spec mapM2M(t()) :: ExMujoco.Tensor.t()

mapM2M — index mapping from qM to M (nC x 1)

int* in C, nC × 1.

mat_emission(model)

@spec mat_emission(t()) :: ExMujoco.Tensor.t()

mat_emission — emission (x rgb) (nmat x 1)

float* in C, nmat × 1.

mat_metallic(model)

@spec mat_metallic(t()) :: ExMujoco.Tensor.t()

mat_metallic — metallic coef (nmat x 1)

float* in C, nmat × 1.

mat_reflectance(model)

@spec mat_reflectance(t()) :: ExMujoco.Tensor.t()

mat_reflectance — reflectance (0: disable) (nmat x 1)

float* in C, nmat × 1.

mat_rgba(model)

@spec mat_rgba(t()) :: ExMujoco.Tensor.t()

mat_rgba — rgba (nmat x 4)

float* in C, nmat × 4.

mat_roughness(model)

@spec mat_roughness(t()) :: ExMujoco.Tensor.t()

mat_roughness — roughness coef (nmat x 1)

float* in C, nmat × 1.

mat_shininess(model)

@spec mat_shininess(t()) :: ExMujoco.Tensor.t()

mat_shininess — shininess coef (nmat x 1)

float* in C, nmat × 1.

mat_specular(model)

@spec mat_specular(t()) :: ExMujoco.Tensor.t()

mat_specular — specular (x white) (nmat x 1)

float* in C, nmat × 1.

mat_texid(model)

@spec mat_texid(t()) :: ExMujoco.Tensor.t()

mat_texid — indices of textures; -1: none (nmat x mjNTEXROLE)

int* in C, nmat × mjNTEXROLE.

mat_texrepeat(model)

@spec mat_texrepeat(t()) :: ExMujoco.Tensor.t()

mat_texrepeat — texture repetition for 2d mapping (nmat x 2)

float* in C, nmat × 2.

mat_texuniform(model)

@spec mat_texuniform(t()) :: ExMujoco.Tensor.t()

mat_texuniform — make texture cube uniform (nmat x 1)

mjtBool* in C, nmat × 1.

mesh_bvhadr(model)

@spec mesh_bvhadr(t()) :: ExMujoco.Tensor.t()

mesh_bvhadr — address of bvh root (nmesh x 1)

int* in C, nmesh × 1.

mesh_bvhnum(model)

@spec mesh_bvhnum(t()) :: ExMujoco.Tensor.t()

mesh_bvhnum — number of bvh (nmesh x 1)

int* in C, nmesh × 1.

mesh_extrema(model)

@spec mesh_extrema(t()) :: ExMujoco.Tensor.t()

mesh_extrema — extremum vertices in 3x3x3 directions (nmesh x 27)

int* in C, nmesh × 27.

mesh_face(model)

@spec mesh_face(t()) :: ExMujoco.Tensor.t()

mesh_face — vertex face data (nmeshface x 3)

int* in C, nmeshface × 3.

mesh_faceadr(model)

@spec mesh_faceadr(t()) :: ExMujoco.Tensor.t()

mesh_faceadr — first face address (nmesh x 1)

int* in C, nmesh × 1.

mesh_facenormal(model)

@spec mesh_facenormal(t()) :: ExMujoco.Tensor.t()

mesh_facenormal — normal face data (nmeshface x 3)

int* in C, nmeshface × 3.

mesh_facenum(model)

@spec mesh_facenum(t()) :: ExMujoco.Tensor.t()

mesh_facenum — number of faces (nmesh x 1)

int* in C, nmesh × 1.

mesh_facetexcoord(model)

@spec mesh_facetexcoord(t()) :: ExMujoco.Tensor.t()

mesh_facetexcoord — texture face data (nmeshface x 3)

int* in C, nmeshface × 3.

mesh_graph(model)

@spec mesh_graph(t()) :: ExMujoco.Tensor.t()

mesh_graph — convex graph data (nmeshgraph x 1)

int* in C, nmeshgraph × 1.

mesh_graphadr(model)

@spec mesh_graphadr(t()) :: ExMujoco.Tensor.t()

mesh_graphadr — graph data address; -1: no graph (nmesh x 1)

int* in C, nmesh × 1.

mesh_normal(model)

@spec mesh_normal(t()) :: ExMujoco.Tensor.t()

mesh_normal — normals for all meshes (nmeshnormal x 3)

float* in C, nmeshnormal × 3.

mesh_normaladr(model)

@spec mesh_normaladr(t()) :: ExMujoco.Tensor.t()

mesh_normaladr — first normal address (nmesh x 1)

int* in C, nmesh × 1.

mesh_normalnum(model)

@spec mesh_normalnum(t()) :: ExMujoco.Tensor.t()

mesh_normalnum — number of normals (nmesh x 1)

int* in C, nmesh × 1.

mesh_octadr(model)

@spec mesh_octadr(t()) :: ExMujoco.Tensor.t()

mesh_octadr — address of octree root (nmesh x 1)

int* in C, nmesh × 1.

mesh_octnum(model)

@spec mesh_octnum(t()) :: ExMujoco.Tensor.t()

mesh_octnum — number of octree nodes (nmesh x 1)

int* in C, nmesh × 1.

mesh_pathadr(model)

@spec mesh_pathadr(t()) :: ExMujoco.Tensor.t()

mesh_pathadr — address of asset path for mesh; -1: none (nmesh x 1)

int* in C, nmesh × 1.

mesh_polyadr(model)

@spec mesh_polyadr(t()) :: ExMujoco.Tensor.t()

mesh_polyadr — first polygon address per mesh (nmesh x 1)

int* in C, nmesh × 1.

mesh_polymap(model)

@spec mesh_polymap(t()) :: ExMujoco.Tensor.t()

mesh_polymap — vertex to polygon map (nmeshpolymap x 1)

int* in C, nmeshpolymap × 1.

mesh_polymapadr(model)

@spec mesh_polymapadr(t()) :: ExMujoco.Tensor.t()

mesh_polymapadr — first polygon address per vertex (nmeshvert x 1)

int* in C, nmeshvert × 1.

mesh_polymapnum(model)

@spec mesh_polymapnum(t()) :: ExMujoco.Tensor.t()

mesh_polymapnum — number of polygons per vertex (nmeshvert x 1)

int* in C, nmeshvert × 1.

mesh_polynormal(model)

@spec mesh_polynormal(t()) :: ExMujoco.Tensor.t()

mesh_polynormal — all polygon normals (nmeshpoly x 3)

mjtNum* in C, nmeshpoly × 3.

mesh_polynum(model)

@spec mesh_polynum(t()) :: ExMujoco.Tensor.t()

mesh_polynum — number of polygons per mesh (nmesh x 1)

int* in C, nmesh × 1.

mesh_polyvert(model)

@spec mesh_polyvert(t()) :: ExMujoco.Tensor.t()

mesh_polyvert — all polygon vertices (nmeshpolyvert x 1)

int* in C, nmeshpolyvert × 1.

mesh_polyvertadr(model)

@spec mesh_polyvertadr(t()) :: ExMujoco.Tensor.t()

mesh_polyvertadr — polygon vertex start address (nmeshpoly x 1)

int* in C, nmeshpoly × 1.

mesh_polyvertnum(model)

@spec mesh_polyvertnum(t()) :: ExMujoco.Tensor.t()

mesh_polyvertnum — number of vertices per polygon (nmeshpoly x 1)

int* in C, nmeshpoly × 1.

mesh_pos(model)

@spec mesh_pos(t()) :: ExMujoco.Tensor.t()

mesh_pos — translation applied to asset vertices (nmesh x 3)

mjtNum* in C, nmesh × 3.

mesh_quat(model)

@spec mesh_quat(t()) :: ExMujoco.Tensor.t()

mesh_quat — rotation applied to asset vertices (nmesh x 4)

mjtNum* in C, nmesh × 4.

mesh_scale(model)

@spec mesh_scale(t()) :: ExMujoco.Tensor.t()

mesh_scale — scaling applied to asset vertices (nmesh x 3)

mjtNum* in C, nmesh × 3.

mesh_texcoord(model)

@spec mesh_texcoord(t()) :: ExMujoco.Tensor.t()

mesh_texcoord — vertex texcoords for all meshes (nmeshtexcoord x 2)

float* in C, nmeshtexcoord × 2.

mesh_texcoordadr(model)

@spec mesh_texcoordadr(t()) :: ExMujoco.Tensor.t()

mesh_texcoordadr — texcoord data address; -1: no texcoord (nmesh x 1)

int* in C, nmesh × 1.

mesh_texcoordnum(model)

@spec mesh_texcoordnum(t()) :: ExMujoco.Tensor.t()

mesh_texcoordnum — number of texcoord (nmesh x 1)

int* in C, nmesh × 1.

mesh_vert(model)

@spec mesh_vert(t()) :: ExMujoco.Tensor.t()

mesh_vert — vertex positions for all meshes (nmeshvert x 3)

float* in C, nmeshvert × 3.

mesh_vertadr(model)

@spec mesh_vertadr(t()) :: ExMujoco.Tensor.t()

mesh_vertadr — first vertex address (nmesh x 1)

int* in C, nmesh × 1.

mesh_vertnum(model)

@spec mesh_vertnum(t()) :: ExMujoco.Tensor.t()

mesh_vertnum — number of vertices (nmesh x 1)

int* in C, nmesh × 1.

na(model)

@spec na(t()) :: integer()

na — number of activation states = dim(act)

mjtSize in C, read as an integer.

nactuator(model)

@spec nactuator(t()) :: integer()

nactuator — number of actuators

mjtSize in C, read as an integer.

name_actuatoradr(model)

@spec name_actuatoradr(t()) :: ExMujoco.Tensor.t()

name_actuatoradr — actuator name pointers (nactuator x 1)

int* in C, nactuator × 1.

name_bodyadr(model)

@spec name_bodyadr(t()) :: ExMujoco.Tensor.t()

name_bodyadr — body name pointers (nbody x 1)

int* in C, nbody × 1.

name_camadr(model)

@spec name_camadr(t()) :: ExMujoco.Tensor.t()

name_camadr — camera name pointers (ncam x 1)

int* in C, ncam × 1.

name_eqadr(model)

@spec name_eqadr(t()) :: ExMujoco.Tensor.t()

name_eqadr — equality constraint name pointers (neq x 1)

int* in C, neq × 1.

name_excludeadr(model)

@spec name_excludeadr(t()) :: ExMujoco.Tensor.t()

name_excludeadr — exclude name pointers (nexclude x 1)

int* in C, nexclude × 1.

name_flexadr(model)

@spec name_flexadr(t()) :: ExMujoco.Tensor.t()

name_flexadr — flex name pointers (nflex x 1)

int* in C, nflex × 1.

name_geomadr(model)

@spec name_geomadr(t()) :: ExMujoco.Tensor.t()

name_geomadr — geom name pointers (ngeom x 1)

int* in C, ngeom × 1.

name_hfieldadr(model)

@spec name_hfieldadr(t()) :: ExMujoco.Tensor.t()

name_hfieldadr — hfield name pointers (nhfield x 1)

int* in C, nhfield × 1.

name_jntadr(model)

@spec name_jntadr(t()) :: ExMujoco.Tensor.t()

name_jntadr — joint name pointers (njnt x 1)

int* in C, njnt × 1.

name_keyadr(model)

@spec name_keyadr(t()) :: ExMujoco.Tensor.t()

name_keyadr — keyframe name pointers (nkey x 1)

int* in C, nkey × 1.

name_lightadr(model)

@spec name_lightadr(t()) :: ExMujoco.Tensor.t()

name_lightadr — light name pointers (nlight x 1)

int* in C, nlight × 1.

name_matadr(model)

@spec name_matadr(t()) :: ExMujoco.Tensor.t()

name_matadr — material name pointers (nmat x 1)

int* in C, nmat × 1.

name_meshadr(model)

@spec name_meshadr(t()) :: ExMujoco.Tensor.t()

name_meshadr — mesh name pointers (nmesh x 1)

int* in C, nmesh × 1.

name_numericadr(model)

@spec name_numericadr(t()) :: ExMujoco.Tensor.t()

name_numericadr — numeric name pointers (nnumeric x 1)

int* in C, nnumeric × 1.

name_pairadr(model)

@spec name_pairadr(t()) :: ExMujoco.Tensor.t()

name_pairadr — geom pair name pointers (npair x 1)

int* in C, npair × 1.

name_pluginadr(model)

@spec name_pluginadr(t()) :: ExMujoco.Tensor.t()

name_pluginadr — plugin instance name pointers (nplugin x 1)

int* in C, nplugin × 1.

name_sensoradr(model)

@spec name_sensoradr(t()) :: ExMujoco.Tensor.t()

name_sensoradr — sensor name pointers (nsensor x 1)

int* in C, nsensor × 1.

name_siteadr(model)

@spec name_siteadr(t()) :: ExMujoco.Tensor.t()

name_siteadr — site name pointers (nsite x 1)

int* in C, nsite × 1.

name_skinadr(model)

@spec name_skinadr(t()) :: ExMujoco.Tensor.t()

name_skinadr — skin name pointers (nskin x 1)

int* in C, nskin × 1.

name_tendonadr(model)

@spec name_tendonadr(t()) :: ExMujoco.Tensor.t()

name_tendonadr — tendon name pointers (ntendon x 1)

int* in C, ntendon × 1.

name_texadr(model)

@spec name_texadr(t()) :: ExMujoco.Tensor.t()

name_texadr — texture name pointers (ntex x 1)

int* in C, ntex × 1.

name_textadr(model)

@spec name_textadr(t()) :: ExMujoco.Tensor.t()

name_textadr — text name pointers (ntext x 1)

int* in C, ntext × 1.

name_tupleadr(model)

@spec name_tupleadr(t()) :: ExMujoco.Tensor.t()

name_tupleadr — tuple name pointers (ntuple x 1)

int* in C, ntuple × 1.

names_map(model)

@spec names_map(t()) :: ExMujoco.Tensor.t()

names_map — internal hash map of names (nnames_map x 1)

int* in C, nnames_map × 1.

narena(model)

@spec narena(t()) :: integer()

narena — number of bytes in the mjData arena (inclusive of stack)

mjtSize in C, read as an integer.

nB(model)

@spec nB(t()) :: integer()

nB — number of non-zeros in sparse body-dof matrix

mjtSize in C, read as an integer.

nbody(model)

@spec nbody(t()) :: integer()

nbody — number of bodies

mjtSize in C, read as an integer.

nbuffer(model)

@spec nbuffer(t()) :: integer()

nbuffer — number of bytes in buffer

mjtSize in C, read as an integer.

nbvh(model)

@spec nbvh(t()) :: integer()

nbvh — number of total bounding volumes in all bodies

mjtSize in C, read as an integer.

nbvhdynamic(model)

@spec nbvhdynamic(t()) :: integer()

nbvhdynamic — number of dynamic bounding volumes (aabb stored in mjData)

mjtSize in C, read as an integer.

nbvhstatic(model)

@spec nbvhstatic(t()) :: integer()

nbvhstatic — number of static bounding volumes (aabb stored in mjModel)

mjtSize in C, read as an integer.

nC(model)

@spec nC(t()) :: integer()

nC — number of non-zeros in sparse reduced dof-dof matrix

mjtSize in C, read as an integer.

ncam(model)

@spec ncam(t()) :: integer()

ncam — number of cameras

mjtSize in C, read as an integer.

nconmax(model)

@spec nconmax(t()) :: integer()

nconmax — number of potential contacts in contact list (legacy)

mjtSize in C, read as an integer.

nD(model)

@spec nD(t()) :: integer()

nD — number of non-zeros in sparse dof-dof matrix

mjtSize in C, read as an integer.

nefm0dof(model)

@spec nefm0dof(t()) :: integer()

nefm0dof — number of dofs covered by the constant metric factor

mjtSize in C, read as an integer.

nefm0L(model)

@spec nefm0L(t()) :: integer()

nefm0L — number of non-zeros in the constant metric factor

mjtSize in C, read as an integer.

nefmCvert(model)

@spec nefmCvert(t()) :: integer()

nefmCvert — number of sparse metric factor ordering slots

mjtSize in C, read as an integer.

nemax(model)

@spec nemax(t()) :: integer()

nemax — number of potential equality-constraint rows

mjtSize in C, read as an integer.

neq(model)

@spec neq(t()) :: integer()

neq — number of equality constraints

mjtSize in C, read as an integer.

nexclude(model)

@spec nexclude(t()) :: integer()

nexclude — number of excluded geom pairs

mjtSize in C, read as an integer.

nflex(model)

@spec nflex(t()) :: integer()

nflex — number of flexes

mjtSize in C, read as an integer.

nflexbending(model)

@spec nflexbending(t()) :: integer()

nflexbending — number of bending parameters in all flexes

mjtSize in C, read as an integer.

nflexedge(model)

@spec nflexedge(t()) :: integer()

nflexedge — number of edges in all flexes

mjtSize in C, read as an integer.

nflexelem(model)

@spec nflexelem(t()) :: integer()

nflexelem — number of elements in all flexes

mjtSize in C, read as an integer.

nflexelemdata(model)

@spec nflexelemdata(t()) :: integer()

nflexelemdata — number of element vertex ids in all flexes

mjtSize in C, read as an integer.

nflexelemedge(model)

@spec nflexelemedge(t()) :: integer()

nflexelemedge — number of element edge ids in all flexes

mjtSize in C, read as an integer.

nflexnode(model)

@spec nflexnode(t()) :: integer()

nflexnode — number of dofs in all flexes

mjtSize in C, read as an integer.

nflexshelldata(model)

@spec nflexshelldata(t()) :: integer()

nflexshelldata — number of shell fragment vertex ids in all flexes

mjtSize in C, read as an integer.

nflexstiffness(model)

@spec nflexstiffness(t()) :: integer()

nflexstiffness — number of stiffness parameters in all flexes

mjtSize in C, read as an integer.

nflextexcoord(model)

@spec nflextexcoord(t()) :: integer()

nflextexcoord — number of vertices with texture coordinates

mjtSize in C, read as an integer.

nflexvert(model)

@spec nflexvert(t()) :: integer()

nflexvert — number of vertices in all flexes

mjtSize in C, read as an integer.

ngeom(model)

@spec ngeom(t()) :: integer()

ngeom — number of geoms

mjtSize in C, read as an integer.

ngravcomp(model)

@spec ngravcomp(t()) :: integer()

ngravcomp — number of bodies with nonzero gravcomp

mjtSize in C, read as an integer.

nhfield(model)

@spec nhfield(t()) :: integer()

nhfield — number of heightfields

mjtSize in C, read as an integer.

nhfielddata(model)

@spec nhfielddata(t()) :: integer()

nhfielddata — number of data points in all heightfields

mjtSize in C, read as an integer.

nhistory(model)

@spec nhistory(t()) :: integer()

nhistory — number of mjtNums in history buffer

mjtSize in C, read as an integer.

nJfe(model)

@spec nJfe(t()) :: integer()

nJfe — number of non-zeros in sparse flexedge Jacobian matrix

mjtSize in C, read as an integer.

nJmom(model)

@spec nJmom(t()) :: integer()

nJmom — number of non-zeros in sparse actuator_moment matrix

mjtSize in C, read as an integer.

nJten(model)

@spec nJten(t()) :: integer()

nJten — number of non-zeros in sparse ten_J matrix

mjtSize in C, read as an integer.

njmax(model)

@spec njmax(t()) :: integer()

njmax — number of available rows in constraint Jacobian (legacy)

mjtSize in C, read as an integer.

njnt(model)

@spec njnt(t()) :: integer()

njnt — number of joints

mjtSize in C, read as an integer.

nkey(model)

@spec nkey(t()) :: integer()

nkey — number of keyframes

mjtSize in C, read as an integer.

nlight(model)

@spec nlight(t()) :: integer()

nlight — number of lights

mjtSize in C, read as an integer.

nM(model)

@spec nM(t()) :: integer()

nM — number of non-zeros in sparse inertia matrix

mjtSize in C, read as an integer.

nmat(model)

@spec nmat(t()) :: integer()

nmat — number of materials

mjtSize in C, read as an integer.

nmesh(model)

@spec nmesh(t()) :: integer()

nmesh — number of meshes

mjtSize in C, read as an integer.

nmeshdegmax(model)

@spec nmeshdegmax(t()) :: integer()

nmeshdegmax — maximum number of edges adjacent to a mesh vertex

mjtSize in C, read as an integer.

nmeshface(model)

@spec nmeshface(t()) :: integer()

nmeshface — number of triangular faces in all meshes

mjtSize in C, read as an integer.

nmeshgraph(model)

@spec nmeshgraph(t()) :: integer()

nmeshgraph — number of ints in mesh auxiliary data

mjtSize in C, read as an integer.

nmeshnormal(model)

@spec nmeshnormal(t()) :: integer()

nmeshnormal — number of normals in all meshes

mjtSize in C, read as an integer.

nmeshpoly(model)

@spec nmeshpoly(t()) :: integer()

nmeshpoly — number of polygons in all meshes

mjtSize in C, read as an integer.

nmeshpolymap(model)

@spec nmeshpolymap(t()) :: integer()

nmeshpolymap — number of polygons in vertex map

mjtSize in C, read as an integer.

nmeshpolyvert(model)

@spec nmeshpolyvert(t()) :: integer()

nmeshpolyvert — number of vertices in all polygons

mjtSize in C, read as an integer.

nmeshtexcoord(model)

@spec nmeshtexcoord(t()) :: integer()

nmeshtexcoord — number of texcoords in all meshes

mjtSize in C, read as an integer.

nmeshvert(model)

@spec nmeshvert(t()) :: integer()

nmeshvert — number of vertices in all meshes

mjtSize in C, read as an integer.

nmocap(model)

@spec nmocap(t()) :: integer()

nmocap — number of mocap bodies

mjtSize in C, read as an integer.

nnames(model)

@spec nnames(t()) :: integer()

nnames — number of chars in all names

mjtSize in C, read as an integer.

nnames_map(model)

@spec nnames_map(t()) :: integer()

nnames_map — number of slots in the names hash map

mjtSize in C, read as an integer.

nnumeric(model)

@spec nnumeric(t()) :: integer()

nnumeric — number of numeric custom fields

mjtSize in C, read as an integer.

nnumericdata(model)

@spec nnumericdata(t()) :: integer()

nnumericdata — number of mjtNums in all numeric fields

mjtSize in C, read as an integer.

noct(model)

@spec noct(t()) :: integer()

noct — number of total octree cells in all meshes

mjtSize in C, read as an integer.

nout(model)

@spec nout(t()) :: integer()

nout — number of force outputs, derived from transmission type

mjtSize in C, read as an integer.

npair(model)

@spec npair(t()) :: integer()

npair — number of predefined geom pairs

mjtSize in C, read as an integer.

npaths(model)

@spec npaths(t()) :: integer()

npaths — number of chars in all paths

mjtSize in C, read as an integer.

nplastic(model)

@spec nplastic(t()) :: integer()

nplastic — number of mjtNums in plastic state vector

mjtSize in C, read as an integer.

nplugin(model)

@spec nplugin(t()) :: integer()

nplugin — number of plugin instances

mjtSize in C, read as an integer.

npluginattr(model)

@spec npluginattr(t()) :: integer()

npluginattr — number of chars in all plugin config attributes

mjtSize in C, read as an integer.

npluginstate(model)

@spec npluginstate(t()) :: integer()

npluginstate — number of mjtNums in plugin state vector

mjtSize in C, read as an integer.

npolygonmax(model)

@spec npolygonmax(t()) :: integer()

npolygonmax — maximum number of vertices in a mesh polygon

mjtSize in C, read as an integer.

nq(model)

@spec nq(t()) :: integer()

nq — number of generalized coordinates = dim(qpos)

mjtSize in C, read as an integer.

nsensor(model)

@spec nsensor(t()) :: integer()

nsensor — number of sensors

mjtSize in C, read as an integer.

nsensordata(model)

@spec nsensordata(t()) :: integer()

nsensordata — number of mjtNums in sensor data vector

mjtSize in C, read as an integer.

nsite(model)

@spec nsite(t()) :: integer()

nsite — number of sites

mjtSize in C, read as an integer.

nskin(model)

@spec nskin(t()) :: integer()

nskin — number of skins

mjtSize in C, read as an integer.

nskinbone(model)

@spec nskinbone(t()) :: integer()

nskinbone — number of bones in all skins

mjtSize in C, read as an integer.

nskinbonevert(model)

@spec nskinbonevert(t()) :: integer()

nskinbonevert — number of vertices in all skin bones

mjtSize in C, read as an integer.

nskinface(model)

@spec nskinface(t()) :: integer()

nskinface — number of triangular faces in all skins

mjtSize in C, read as an integer.

nskintexvert(model)

@spec nskintexvert(t()) :: integer()

nskintexvert — number of vertices with texcoords in all skins

mjtSize in C, read as an integer.

nskinvert(model)

@spec nskinvert(t()) :: integer()

nskinvert — number of vertices in all skins

mjtSize in C, read as an integer.

ntendon(model)

@spec ntendon(t()) :: integer()

ntendon — number of tendons

mjtSize in C, read as an integer.

ntex(model)

@spec ntex(t()) :: integer()

ntex — number of textures

mjtSize in C, read as an integer.

ntexdata(model)

@spec ntexdata(t()) :: integer()

ntexdata — number of bytes in texture rgb data

mjtSize in C, read as an integer.

ntext(model)

@spec ntext(t()) :: integer()

ntext — number of text custom fields

mjtSize in C, read as an integer.

ntextdata(model)

@spec ntextdata(t()) :: integer()

ntextdata — number of mjtBytes in all text fields

mjtSize in C, read as an integer.

ntree(model)

@spec ntree(t()) :: integer()

ntree — number of kinematic trees under world body

mjtSize in C, read as an integer.

ntuple(model)

@spec ntuple(t()) :: integer()

ntuple — number of tuple custom fields

mjtSize in C, read as an integer.

ntupledata(model)

@spec ntupledata(t()) :: integer()

ntupledata — number of objects in all tuple fields

mjtSize in C, read as an integer.

nu(model)

@spec nu(t()) :: integer()

nu — number of scalar controls = dim(ctrl)

mjtSize in C, read as an integer.

numeric_adr(model)

@spec numeric_adr(t()) :: ExMujoco.Tensor.t()

numeric_adr — address of field in numeric_data (nnumeric x 1)

int* in C, nnumeric × 1.

numeric_data(model)

@spec numeric_data(t()) :: ExMujoco.Tensor.t()

numeric_data — array of all numeric fields (nnumericdata x 1)

mjtNum* in C, nnumericdata × 1.

numeric_size(model)

@spec numeric_size(t()) :: ExMujoco.Tensor.t()

numeric_size — size of numeric field (nnumeric x 1)

int* in C, nnumeric × 1.

nuser_actuator(model)

@spec nuser_actuator(t()) :: integer()

nuser_actuator — number of mjtNums in actuator_user

mjtSize in C, read as an integer.

nuser_body(model)

@spec nuser_body(t()) :: integer()

nuser_body — number of mjtNums in body_user

mjtSize in C, read as an integer.

nuser_cam(model)

@spec nuser_cam(t()) :: integer()

nuser_cam — number of mjtNums in cam_user

mjtSize in C, read as an integer.

nuser_geom(model)

@spec nuser_geom(t()) :: integer()

nuser_geom — number of mjtNums in geom_user

mjtSize in C, read as an integer.

nuser_jnt(model)

@spec nuser_jnt(t()) :: integer()

nuser_jnt — number of mjtNums in jnt_user

mjtSize in C, read as an integer.

nuser_sensor(model)

@spec nuser_sensor(t()) :: integer()

nuser_sensor — number of mjtNums in sensor_user

mjtSize in C, read as an integer.

nuser_site(model)

@spec nuser_site(t()) :: integer()

nuser_site — number of mjtNums in site_user

mjtSize in C, read as an integer.

nuser_tendon(model)

@spec nuser_tendon(t()) :: integer()

nuser_tendon — number of mjtNums in tendon_user

mjtSize in C, read as an integer.

nuserdata(model)

@spec nuserdata(t()) :: integer()

nuserdata — number of mjtNums reserved for the user

mjtSize in C, read as an integer.

nv(model)

@spec nv(t()) :: integer()

nv — number of degrees of freedom = dim(qvel)

mjtSize in C, read as an integer.

nwrap(model)

@spec nwrap(t()) :: integer()

nwrap — number of wrap objects in all tendon paths

mjtSize in C, read as an integer.

oct_aabb(model)

@spec oct_aabb(t()) :: ExMujoco.Tensor.t()

oct_aabb — octree node bounding box (center, size) (noct x 6)

mjtNum* in C, noct × 6.

oct_child(model)

@spec oct_child(t()) :: ExMujoco.Tensor.t()

oct_child — children of octree node (noct x 8)

int* in C, noct × 8.

oct_coeff(model)

@spec oct_coeff(t()) :: ExMujoco.Tensor.t()

oct_coeff — octree interpolation coefficients (noct x 8)

mjtNum* in C, noct × 8.

oct_depth(model)

@spec oct_depth(t()) :: ExMujoco.Tensor.t()

oct_depth — depth in the octree (noct x 1)

int* in C, noct × 1.

pair_adhesion(model)

@spec pair_adhesion(t()) :: ExMujoco.Tensor.t()

pair_adhesion — adhesive force of contacts (npair x 1)

mjtNum* in C, npair × 1.

pair_dim(model)

@spec pair_dim(t()) :: ExMujoco.Tensor.t()

pair_dim — contact dimensionality (npair x 1)

int* in C, npair × 1.

pair_friction(model)

@spec pair_friction(t()) :: ExMujoco.Tensor.t()

pair_friction — tangent1, 2, spin, roll1, 2 (npair x 5)

mjtNum* in C, npair × 5.

pair_gap(model)

@spec pair_gap(t()) :: ExMujoco.Tensor.t()

pair_gap — additional contact detection buffer (npair x 1)

mjtNum* in C, npair × 1.

pair_geom1(model)

@spec pair_geom1(t()) :: ExMujoco.Tensor.t()

pair_geom1 — id of geom1 (npair x 1)

int* in C, npair × 1.

pair_geom2(model)

@spec pair_geom2(t()) :: ExMujoco.Tensor.t()

pair_geom2 — id of geom2 (npair x 1)

int* in C, npair × 1.

pair_margin(model)

@spec pair_margin(t()) :: ExMujoco.Tensor.t()

pair_margin — geometric inflation for contact (npair x 1)

mjtNum* in C, npair × 1.

pair_signature(model)

@spec pair_signature(t()) :: ExMujoco.Tensor.t()

pair_signature — body1 << 16 + body2 (npair x 1)

int* in C, npair × 1.

pair_solimp(model)

@spec pair_solimp(t()) :: ExMujoco.Tensor.t()

pair_solimp — solver impedance: contact (npair x mjNIMP)

mjtNum* in C, npair × mjNIMP.

pair_solref(model)

@spec pair_solref(t()) :: ExMujoco.Tensor.t()

pair_solref — solver reference: contact normal (npair x mjNREF)

mjtNum* in C, npair × mjNREF.

pair_solreffriction(model)

@spec pair_solreffriction(t()) :: ExMujoco.Tensor.t()

pair_solreffriction — solver reference: contact friction (npair x mjNREF)

mjtNum* in C, npair × mjNREF.

plugin(model)

@spec plugin(t()) :: ExMujoco.Tensor.t()

plugin — globally registered plugin slot number (nplugin x 1)

int* in C, nplugin × 1.

plugin_attradr(model)

@spec plugin_attradr(t()) :: ExMujoco.Tensor.t()

plugin_attradr — address to each instance's config attrib (nplugin x 1)

int* in C, nplugin × 1.

plugin_stateadr(model)

@spec plugin_stateadr(t()) :: ExMujoco.Tensor.t()

plugin_stateadr — address in the plugin state array (nplugin x 1)

int* in C, nplugin × 1.

plugin_statenum(model)

@spec plugin_statenum(t()) :: ExMujoco.Tensor.t()

plugin_statenum — number of states in the plugin instance (nplugin x 1)

int* in C, nplugin × 1.

qpos0(model)

@spec qpos0(t()) :: ExMujoco.Tensor.t()

qpos0 — qpos values at default pose (nq x 1)

mjtNum* in C, nq × 1.

qpos_spring(model)

@spec qpos_spring(t()) :: ExMujoco.Tensor.t()

qpos_spring — reference pose for springs (nq x 1)

mjtNum* in C, nq × 1.

sensor_adr(model)

@spec sensor_adr(t()) :: ExMujoco.Tensor.t()

sensor_adr — address in sensor array (nsensor x 1)

int* in C, nsensor × 1.

sensor_cutoff(model)

@spec sensor_cutoff(t()) :: ExMujoco.Tensor.t()

sensor_cutoff — cutoff for real and positive; 0: ignore (nsensor x 1)

mjtNum* in C, nsensor × 1.

sensor_datatype(model)

@spec sensor_datatype(t()) :: ExMujoco.Tensor.t()

sensor_datatype — numeric data type (mjtDataType) (nsensor x 1)

int* in C, nsensor × 1.

sensor_delay(model)

@spec sensor_delay(t()) :: ExMujoco.Tensor.t()

sensor_delay — delay time in seconds; 0: no delay (nsensor x 1)

mjtNum* in C, nsensor × 1.

sensor_dim(model)

@spec sensor_dim(t()) :: ExMujoco.Tensor.t()

sensor_dim — number of scalar outputs (nsensor x 1)

int* in C, nsensor × 1.

sensor_history(model)

@spec sensor_history(t()) :: ExMujoco.Tensor.t()

sensor_history — history buffer: [nsample, interp] (nsensor x 2)

int* in C, nsensor × 2.

sensor_historyadr(model)

@spec sensor_historyadr(t()) :: ExMujoco.Tensor.t()

sensor_historyadr — address in history buffer; -1: none (nsensor x 1)

int* in C, nsensor × 1.

sensor_interval(model)

@spec sensor_interval(t()) :: ExMujoco.Tensor.t()

sensor_interval — interval: [period, phase] in seconds (nsensor x 2)

mjtNum* in C, nsensor × 2.

sensor_intprm(model)

@spec sensor_intprm(t()) :: ExMujoco.Tensor.t()

sensor_intprm — sensor parameters (nsensor x mjNSENS)

int* in C, nsensor × mjNSENS.

sensor_needstage(model)

@spec sensor_needstage(t()) :: ExMujoco.Tensor.t()

sensor_needstage — required compute stage (mjtStage) (nsensor x 1)

int* in C, nsensor × 1.

sensor_noise(model)

@spec sensor_noise(t()) :: ExMujoco.Tensor.t()

sensor_noise — noise standard deviation (nsensor x 1)

mjtNum* in C, nsensor × 1.

sensor_objid(model)

@spec sensor_objid(t()) :: ExMujoco.Tensor.t()

sensor_objid — id of sensorized object (nsensor x 1)

int* in C, nsensor × 1.

sensor_objtype(model)

@spec sensor_objtype(t()) :: ExMujoco.Tensor.t()

sensor_objtype — type of sensorized object (mjtObj) (nsensor x 1)

int* in C, nsensor × 1.

sensor_plugin(model)

@spec sensor_plugin(t()) :: ExMujoco.Tensor.t()

sensor_plugin — plugin instance id; -1: not a plugin (nsensor x 1)

int* in C, nsensor × 1.

sensor_refid(model)

@spec sensor_refid(t()) :: ExMujoco.Tensor.t()

sensor_refid — id of reference frame; -1: global frame (nsensor x 1)

int* in C, nsensor × 1.

sensor_reftype(model)

@spec sensor_reftype(t()) :: ExMujoco.Tensor.t()

sensor_reftype — type of reference frame (mjtObj) (nsensor x 1)

int* in C, nsensor × 1.

sensor_type(model)

@spec sensor_type(t()) :: ExMujoco.Tensor.t()

sensor_type — sensor type (mjtSensor) (nsensor x 1)

int* in C, nsensor × 1.

sensor_user(model)

@spec sensor_user(t()) :: ExMujoco.Tensor.t()

sensor_user — user data (nsensor x nuser_sensor)

mjtNum* in C, nsensor × nuser_sensor@model.

site_bodyid(model)

@spec site_bodyid(t()) :: ExMujoco.Tensor.t()

site_bodyid — id of site's body (nsite x 1)

int* in C, nsite × 1.

site_dataid(model)

@spec site_dataid(t()) :: ExMujoco.Tensor.t()

site_dataid — id of site's mesh; -1: none (nsite x 1)

int* in C, nsite × 1.

site_group(model)

@spec site_group(t()) :: ExMujoco.Tensor.t()

site_group — group for visibility (nsite x 1)

int* in C, nsite × 1.

site_matid(model)

@spec site_matid(t()) :: ExMujoco.Tensor.t()

site_matid — material id for rendering; -1: none (nsite x 1)

int* in C, nsite × 1.

site_pos(model)

@spec site_pos(t()) :: ExMujoco.Tensor.t()

site_pos — local position offset rel. to body (nsite x 3)

mjtNum* in C, nsite × 3.

site_quat(model)

@spec site_quat(t()) :: ExMujoco.Tensor.t()

site_quat — local orientation offset rel. to body (nsite x 4)

mjtNum* in C, nsite × 4.

site_rgba(model)

@spec site_rgba(t()) :: ExMujoco.Tensor.t()

site_rgba — rgba when material is omitted (nsite x 4)

float* in C, nsite × 4.

site_sameframe(model)

@spec site_sameframe(t()) :: ExMujoco.Tensor.t()

site_sameframe — same frame as body (mjtSameframe) (nsite x 1)

mjtByte* in C, nsite × 1.

site_size(model)

@spec site_size(t()) :: ExMujoco.Tensor.t()

site_size — geom size for rendering (nsite x 3)

mjtNum* in C, nsite × 3.

site_type(model)

@spec site_type(t()) :: ExMujoco.Tensor.t()

site_type — geom type for rendering (mjtGeom) (nsite x 1)

int* in C, nsite × 1.

site_user(model)

@spec site_user(t()) :: ExMujoco.Tensor.t()

site_user — user data (nsite x nuser_site)

mjtNum* in C, nsite × nuser_site@model.

skin_boneadr(model)

@spec skin_boneadr(t()) :: ExMujoco.Tensor.t()

skin_boneadr — first bone in skin (nskin x 1)

int* in C, nskin × 1.

skin_bonebindpos(model)

@spec skin_bonebindpos(t()) :: ExMujoco.Tensor.t()

skin_bonebindpos — bind pos of each bone (nskinbone x 3)

float* in C, nskinbone × 3.

skin_bonebindquat(model)

@spec skin_bonebindquat(t()) :: ExMujoco.Tensor.t()

skin_bonebindquat — bind quat of each bone (nskinbone x 4)

float* in C, nskinbone × 4.

skin_bonebodyid(model)

@spec skin_bonebodyid(t()) :: ExMujoco.Tensor.t()

skin_bonebodyid — body id of each bone (nskinbone x 1)

int* in C, nskinbone × 1.

skin_bonenum(model)

@spec skin_bonenum(t()) :: ExMujoco.Tensor.t()

skin_bonenum — number of bones in skin (nskin x 1)

int* in C, nskin × 1.

skin_bonevertadr(model)

@spec skin_bonevertadr(t()) :: ExMujoco.Tensor.t()

skin_bonevertadr — first vertex in each bone (nskinbone x 1)

int* in C, nskinbone × 1.

skin_bonevertid(model)

@spec skin_bonevertid(t()) :: ExMujoco.Tensor.t()

skin_bonevertid — mesh ids of vertices in each bone (nskinbonevert x 1)

int* in C, nskinbonevert × 1.

skin_bonevertnum(model)

@spec skin_bonevertnum(t()) :: ExMujoco.Tensor.t()

skin_bonevertnum — number of vertices in each bone (nskinbone x 1)

int* in C, nskinbone × 1.

skin_bonevertweight(model)

@spec skin_bonevertweight(t()) :: ExMujoco.Tensor.t()

skin_bonevertweight — weights of vertices in each bone (nskinbonevert x 1)

float* in C, nskinbonevert × 1.

skin_face(model)

@spec skin_face(t()) :: ExMujoco.Tensor.t()

skin_face — triangle faces for all skin meshes (nskinface x 3)

int* in C, nskinface × 3.

skin_faceadr(model)

@spec skin_faceadr(t()) :: ExMujoco.Tensor.t()

skin_faceadr — first face address (nskin x 1)

int* in C, nskin × 1.

skin_facenum(model)

@spec skin_facenum(t()) :: ExMujoco.Tensor.t()

skin_facenum — number of faces (nskin x 1)

int* in C, nskin × 1.

skin_group(model)

@spec skin_group(t()) :: ExMujoco.Tensor.t()

skin_group — group for visibility (nskin x 1)

int* in C, nskin × 1.

skin_inflate(model)

@spec skin_inflate(t()) :: ExMujoco.Tensor.t()

skin_inflate — inflate skin in normal direction (nskin x 1)

float* in C, nskin × 1.

skin_matid(model)

@spec skin_matid(t()) :: ExMujoco.Tensor.t()

skin_matid — skin material id; -1: none (nskin x 1)

int* in C, nskin × 1.

skin_pathadr(model)

@spec skin_pathadr(t()) :: ExMujoco.Tensor.t()

skin_pathadr — address of asset path for skin; -1: none (nskin x 1)

int* in C, nskin × 1.

skin_rgba(model)

@spec skin_rgba(t()) :: ExMujoco.Tensor.t()

skin_rgba — skin rgba (nskin x 4)

float* in C, nskin × 4.

skin_texcoord(model)

@spec skin_texcoord(t()) :: ExMujoco.Tensor.t()

skin_texcoord — vertex texcoords for all skin meshes (nskintexvert x 2)

float* in C, nskintexvert × 2.

skin_texcoordadr(model)

@spec skin_texcoordadr(t()) :: ExMujoco.Tensor.t()

skin_texcoordadr — texcoord data address; -1: no texcoord (nskin x 1)

int* in C, nskin × 1.

skin_vert(model)

@spec skin_vert(t()) :: ExMujoco.Tensor.t()

skin_vert — vertex positions for all skin meshes (nskinvert x 3)

float* in C, nskinvert × 3.

skin_vertadr(model)

@spec skin_vertadr(t()) :: ExMujoco.Tensor.t()

skin_vertadr — first vertex address (nskin x 1)

int* in C, nskin × 1.

skin_vertnum(model)

@spec skin_vertnum(t()) :: ExMujoco.Tensor.t()

skin_vertnum — number of vertices (nskin x 1)

int* in C, nskin × 1.

ten_J_colind(model)

@spec ten_J_colind(t()) :: ExMujoco.Tensor.t()

ten_J_colind — column indices in sparse Jacobian (nJten x 1)

int* in C, nJten × 1.

ten_J_rowadr(model)

@spec ten_J_rowadr(t()) :: ExMujoco.Tensor.t()

ten_J_rowadr — row start address in colind array (ntendon x 1)

int* in C, ntendon × 1.

ten_J_rownnz(model)

@spec ten_J_rownnz(t()) :: ExMujoco.Tensor.t()

ten_J_rownnz — number of non-zeros in Jacobian row (ntendon x 1)

int* in C, ntendon × 1.

tendon_actfrclimited(model)

@spec tendon_actfrclimited(t()) :: ExMujoco.Tensor.t()

tendon_actfrclimited — does tendon have actuator force limits (ntendon x 1)

mjtBool* in C, ntendon × 1.

tendon_actfrcrange(model)

@spec tendon_actfrcrange(t()) :: ExMujoco.Tensor.t()

tendon_actfrcrange — range of total actuator force (ntendon x 2)

mjtNum* in C, ntendon × 2.

tendon_actuatorid(model)

@spec tendon_actuatorid(t()) :: ExMujoco.Tensor.t()

tendon_actuatorid — actuator contributing damping / armature (ntendon x 1)

int* in C, ntendon × 1.

tendon_adr(model)

@spec tendon_adr(t()) :: ExMujoco.Tensor.t()

tendon_adr — address of first object in tendon's path (ntendon x 1)

int* in C, ntendon × 1.

tendon_armature(model)

@spec tendon_armature(t()) :: ExMujoco.Tensor.t()

tendon_armature — inertia associated with tendon velocity (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_damping(model)

@spec tendon_damping(t()) :: ExMujoco.Tensor.t()

tendon_damping — linear damping coefficient (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_dampingpoly(model)

@spec tendon_dampingpoly(t()) :: ExMujoco.Tensor.t()

tendon_dampingpoly — high-order damping coefficients (ntendon x mjNPOLY)

mjtNum* in C, ntendon × mjNPOLY.

tendon_frictionloss(model)

@spec tendon_frictionloss(t()) :: ExMujoco.Tensor.t()

tendon_frictionloss — loss due to friction (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_group(model)

@spec tendon_group(t()) :: ExMujoco.Tensor.t()

tendon_group — group for visibility (ntendon x 1)

int* in C, ntendon × 1.

tendon_invweight0(model)

@spec tendon_invweight0(t()) :: ExMujoco.Tensor.t()

tendon_invweight0 — inv. weight in qpos0 (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_length0(model)

@spec tendon_length0(t()) :: ExMujoco.Tensor.t()

tendon_length0 — tendon length in qpos0 (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_lengthspring(model)

@spec tendon_lengthspring(t()) :: ExMujoco.Tensor.t()

tendon_lengthspring — spring resting length range (ntendon x 2)

mjtNum* in C, ntendon × 2.

tendon_limited(model)

@spec tendon_limited(t()) :: ExMujoco.Tensor.t()

tendon_limited — does tendon have length limits (ntendon x 1)

mjtBool* in C, ntendon × 1.

tendon_margin(model)

@spec tendon_margin(t()) :: ExMujoco.Tensor.t()

tendon_margin — min distance for limit detection (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_matid(model)

@spec tendon_matid(t()) :: ExMujoco.Tensor.t()

tendon_matid — material id for rendering (ntendon x 1)

int* in C, ntendon × 1.

tendon_num(model)

@spec tendon_num(t()) :: ExMujoco.Tensor.t()

tendon_num — number of objects in tendon's path (ntendon x 1)

int* in C, ntendon × 1.

tendon_plasticadr(model)

@spec tendon_plasticadr(t()) :: ExMujoco.Tensor.t()

tendon_plasticadr — start addr in plastic state (-1: none) (ntendon x 1)

int* in C, ntendon × 1.

tendon_range(model)

@spec tendon_range(t()) :: ExMujoco.Tensor.t()

tendon_range — tendon length limits (ntendon x 2)

mjtNum* in C, ntendon × 2.

tendon_rgba(model)

@spec tendon_rgba(t()) :: ExMujoco.Tensor.t()

tendon_rgba — rgba when material is omitted (ntendon x 4)

float* in C, ntendon × 4.

tendon_solimp_fri(model)

@spec tendon_solimp_fri(t()) :: ExMujoco.Tensor.t()

tendon_solimp_fri — constraint solver impedance: friction (ntendon x mjNIMP)

mjtNum* in C, ntendon × mjNIMP.

tendon_solimp_lim(model)

@spec tendon_solimp_lim(t()) :: ExMujoco.Tensor.t()

tendon_solimp_lim — constraint solver impedance: limit (ntendon x mjNIMP)

mjtNum* in C, ntendon × mjNIMP.

tendon_solref_fri(model)

@spec tendon_solref_fri(t()) :: ExMujoco.Tensor.t()

tendon_solref_fri — constraint solver reference: friction (ntendon x mjNREF)

mjtNum* in C, ntendon × mjNREF.

tendon_solref_lim(model)

@spec tendon_solref_lim(t()) :: ExMujoco.Tensor.t()

tendon_solref_lim — constraint solver reference: limit (ntendon x mjNREF)

mjtNum* in C, ntendon × mjNREF.

tendon_springyield(model)

@spec tendon_springyield(t()) :: ExMujoco.Tensor.t()

tendon_springyield — plastic yield threshold (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_stiffness(model)

@spec tendon_stiffness(t()) :: ExMujoco.Tensor.t()

tendon_stiffness — linear stiffness coefficient (ntendon x 1)

mjtNum* in C, ntendon × 1.

tendon_stiffnesspoly(model)

@spec tendon_stiffnesspoly(t()) :: ExMujoco.Tensor.t()

tendon_stiffnesspoly — high-order stiffness coefficients (ntendon x mjNPOLY)

mjtNum* in C, ntendon × mjNPOLY.

tendon_treeid(model)

@spec tendon_treeid(t()) :: ExMujoco.Tensor.t()

tendon_treeid — first two trees along tendon's path (ntendon x 2)

int* in C, ntendon × 2.

tendon_treenum(model)

@spec tendon_treenum(t()) :: ExMujoco.Tensor.t()

tendon_treenum — number of trees along tendon's path (ntendon x 1)

int* in C, ntendon × 1.

tendon_type(model)

@spec tendon_type(t()) :: ExMujoco.Tensor.t()

tendon_type — type of tendon (mjtTendon) (ntendon x 1)

int* in C, ntendon × 1.

tendon_user(model)

@spec tendon_user(t()) :: ExMujoco.Tensor.t()

tendon_user — user data (ntendon x nuser_tendon)

mjtNum* in C, ntendon × nuser_tendon@model.

tendon_width(model)

@spec tendon_width(t()) :: ExMujoco.Tensor.t()

tendon_width — width for rendering (ntendon x 1)

mjtNum* in C, ntendon × 1.

tex_colorspace(model)

@spec tex_colorspace(t()) :: ExMujoco.Tensor.t()

tex_colorspace — texture colorspace (mjtColorSpace) (ntex x 1)

int* in C, ntex × 1.

tex_contenttypeadr(model)

@spec tex_contenttypeadr(t()) :: ExMujoco.Tensor.t()

tex_contenttypeadr — content type address in paths; -1: none (ntex x 1)

int* in C, ntex × 1.

tex_data(model)

@spec tex_data(t()) :: ExMujoco.Tensor.t()

tex_data — pixel values (ntexdata x 1)

mjtByte* in C, ntexdata × 1.

tex_height(model)

@spec tex_height(t()) :: ExMujoco.Tensor.t()

tex_height — number of rows in texture image (ntex x 1)

int* in C, ntex × 1.

tex_nchannel(model)

@spec tex_nchannel(t()) :: ExMujoco.Tensor.t()

tex_nchannel — number of channels in texture image (ntex x 1)

int* in C, ntex × 1.

tex_pathadr(model)

@spec tex_pathadr(t()) :: ExMujoco.Tensor.t()

tex_pathadr — address of texture asset path; -1: none (ntex x 1)

int* in C, ntex × 1.

tex_type(model)

@spec tex_type(t()) :: ExMujoco.Tensor.t()

tex_type — texture type (mjtTexture) (ntex x 1)

int* in C, ntex × 1.

tex_width(model)

@spec tex_width(t()) :: ExMujoco.Tensor.t()

tex_width — number of columns in texture image (ntex x 1)

int* in C, ntex × 1.

text_adr(model)

@spec text_adr(t()) :: ExMujoco.Tensor.t()

text_adr — address of text in text_data (ntext x 1)

int* in C, ntext × 1.

text_size(model)

@spec text_size(t()) :: ExMujoco.Tensor.t()

text_size — size of text field (strlen+1) (ntext x 1)

int* in C, ntext × 1.

tree_bodyadr(model)

@spec tree_bodyadr(t()) :: ExMujoco.Tensor.t()

tree_bodyadr — start addr of bodies (ntree x 1)

int* in C, ntree × 1.

tree_bodynum(model)

@spec tree_bodynum(t()) :: ExMujoco.Tensor.t()

tree_bodynum — number of bodies in tree (ntree x 1)

int* in C, ntree × 1.

tree_dofadr(model)

@spec tree_dofadr(t()) :: ExMujoco.Tensor.t()

tree_dofadr — start addr of dofs (ntree x 1)

int* in C, ntree × 1.

tree_dofnum(model)

@spec tree_dofnum(t()) :: ExMujoco.Tensor.t()

tree_dofnum — number of dofs in tree (ntree x 1)

int* in C, ntree × 1.

tree_sleep_policy(model)

@spec tree_sleep_policy(t()) :: ExMujoco.Tensor.t()

tree_sleep_policy — sleep policy (mjtSleepPolicy) (ntree x 1)

int* in C, ntree × 1.

tuple_adr(model)

@spec tuple_adr(t()) :: ExMujoco.Tensor.t()

tuple_adr — address of text in text_data (ntuple x 1)

int* in C, ntuple × 1.

tuple_objid(model)

@spec tuple_objid(t()) :: ExMujoco.Tensor.t()

tuple_objid — array of object ids in all tuples (ntupledata x 1)

int* in C, ntupledata × 1.

tuple_objprm(model)

@spec tuple_objprm(t()) :: ExMujoco.Tensor.t()

tuple_objprm — array of object params in all tuples (ntupledata x 1)

mjtNum* in C, ntupledata × 1.

tuple_objtype(model)

@spec tuple_objtype(t()) :: ExMujoco.Tensor.t()

tuple_objtype — array of object types in all tuples (ntupledata x 1)

int* in C, ntupledata × 1.

tuple_size(model)

@spec tuple_size(t()) :: ExMujoco.Tensor.t()

tuple_size — number of objects in tuple (ntuple x 1)

int* in C, ntuple × 1.

wrap_objid(model)

@spec wrap_objid(t()) :: ExMujoco.Tensor.t()

wrap_objid — object id: geom, site, joint (nwrap x 1)

int* in C, nwrap × 1.

wrap_prm(model)

@spec wrap_prm(t()) :: ExMujoco.Tensor.t()

wrap_prm — divisor, joint coef, or site id (nwrap x 1)

mjtNum* in C, nwrap × 1.

wrap_type(model)

@spec wrap_type(t()) :: ExMujoco.Tensor.t()

wrap_type — wrap object type (mjtWrap) (nwrap x 1)

int* in C, nwrap × 1.