Reformat MJCF array in xml_native_reader.cc.

Undo mistaken auto-format of the schema table, revert it to be more human-readable.

PiperOrigin-RevId: 941628625
Change-Id: Ifc51996da9a7df9d1a03392a0ade256fb8b1c151
This commit is contained in:
Yuval Tassa
2026-07-02 04:44:53 -07:00
committed by Copybara-Service
parent c3adb50898
commit cdc35dec38
+261 -490
View File
@@ -166,62 +166,33 @@ static void UpdateString(string& psuffix, int count, int i) {
//---------------------------------- MJCF schema ---------------------------------------------------
// clang-format off
std::vector<const char*> MJCF[nMJCF] = {
{"mujoco", "!", "model"},
{"mujoco", "!", "model"},
{"<"},
{"compiler", "*", "autolimits", "boundmass", "boundinertia", "settotalmass",
"balanceinertia", "strippath", "coordinate", "angle", "fitaabb", "eulerseq",
"meshdir", "texturedir", "discardvisual", "usethread", "fusestatic", "inertiafromgeom",
"inertiagrouprange", "saveinertial", "assetdir", "alignfree", "conflict"},
{"<"},
{"compiler", "*",
"autolimits", "boundmass",
"boundinertia", "settotalmass",
"balanceinertia", "strippath",
"coordinate", "angle",
"fitaabb", "eulerseq",
"meshdir", "texturedir",
"discardvisual", "usethread",
"fusestatic", "inertiafromgeom",
"inertiagrouprange", "saveinertial",
"assetdir", "alignfree",
"conflict"},
{"<"},
{"lengthrange", "?", "mode", "useexisting", "uselimit", "accel", "maxforce",
"timeconst", "timestep", "inttotal", "interval", "tolrange"},
{"lengthrange", "?", "mode", "useexisting", "uselimit",
"accel", "maxforce", "timeconst", "timestep",
"inttotal", "interval", "tolrange"},
{">"},
{"option",
"*",
"timestep",
"impratio",
"tolerance",
"ls_tolerance",
"noslip_tolerance",
"ccd_tolerance",
"sleep_tolerance",
"gravity",
"wind",
"magnetic",
"density",
"viscosity",
"o_margin",
"o_solref",
"o_solimp",
"o_friction",
"integrator",
"cone",
"jacobian",
"solver",
"iterations",
"ls_iterations",
"noslip_iterations",
"ccd_iterations",
"sdf_iterations",
"sdf_initpoints",
"actuatorgroupdisable"},
{"option", "*",
"timestep", "impratio", "tolerance", "ls_tolerance", "noslip_tolerance",
"ccd_tolerance", "sleep_tolerance", "gravity", "wind", "magnetic", "density", "viscosity",
"o_margin", "o_solref", "o_solimp", "o_friction",
"integrator", "cone", "jacobian",
"solver", "iterations", "ls_iterations", "noslip_iterations", "ccd_iterations",
"sdf_iterations", "sdf_initpoints", "actuatorgroupdisable"},
{"<"},
{"flag", "?", "constraint", "equality", "frictionloss",
"limit", "contact", "spring", "damper", "gravity",
"clampctrl", "warmstart", "filterparent", "actuation", "refsafe",
"sensor", "midphase", "eulerdamp", "autoreset", "nativeccd",
"island", "override", "energy", "fwdinv", "invdiscrete",
"multiccd", "sleep", "diagexact"},
{"flag", "?", "constraint", "equality", "frictionloss", "limit", "contact",
"spring", "damper", "gravity", "clampctrl", "warmstart", "filterparent", "actuation",
"refsafe", "sensor", "midphase", "eulerdamp", "autoreset", "nativeccd", "island",
"override", "energy", "fwdinv", "invdiscrete", "multiccd", "sleep",
"diagexact"},
{">"},
{"size", "*", "memory", "njmax", "nconmax", "nstack", "nuserdata", "nkey",
@@ -230,50 +201,26 @@ std::vector<const char*> MJCF[nMJCF] = {
{"visual", "*"},
{"<"},
{"global", "?", "cameraid", "orthographic", "fovy", "ipd", "azimuth",
"elevation", "linewidth", "glow", "offwidth", "offheight", "realtime",
"ellipsoidinertia", "bvactive"},
{"global", "?", "cameraid", "orthographic", "fovy", "ipd", "azimuth", "elevation",
"linewidth", "glow", "offwidth", "offheight", "realtime", "ellipsoidinertia",
"bvactive"},
{"quality", "?", "shadowsize", "offsamples", "numslices", "numstacks",
"numquads"},
{"headlight", "?", "ambient", "diffuse", "specular", "active"},
{"map", "?", "stiffness", "stiffnessrot", "force", "torque", "alpha",
"fogstart", "fogend", "znear", "zfar", "haze", "shadowclip", "shadowscale",
"actuatortendon"},
{"scale", "?", "forcewidth", "contactwidth", "contactheight", "connect",
"com", "camera", "light", "selectpoint", "jointlength", "jointwidth",
"actuatorlength", "actuatorwidth", "framelength", "framewidth",
"constraint", "slidercrank", "frustum"},
{"rgba",
"?",
"fog",
"haze",
"force",
"inertia",
"joint",
"actuator",
"actuatornegative",
"actuatorpositive",
"com",
"camera",
"light",
"selectpoint",
"connect",
"contactpoint",
"contactforce",
"contactfriction",
"contacttorque",
"contactgap",
"rangefinder",
"constraint",
"slidercrank",
"crankbroken",
"frustum",
"bv",
"bvactive"},
{"scale", "?", "forcewidth", "contactwidth", "contactheight", "connect", "com",
"camera", "light", "selectpoint", "jointlength", "jointwidth", "actuatorlength",
"actuatorwidth", "framelength", "framewidth", "constraint", "slidercrank", "frustum"},
{"rgba", "?", "fog", "haze", "force", "inertia", "joint",
"actuator", "actuatornegative", "actuatorpositive", "com",
"camera", "light", "selectpoint", "connect", "contactpoint", "contactforce",
"contactfriction", "contacttorque", "contactgap", "rangefinder",
"constraint", "slidercrank", "crankbroken", "frustum", "bv", "bvactive"},
{">"},
{"statistic", "*", "meaninertia", "meanmass", "meansize", "extent",
"center"},
{"statistic", "*", "meaninertia", "meanmass", "meansize", "extent", "center"},
{"default", "R", "class"},
{"<"},
@@ -283,92 +230,60 @@ std::vector<const char*> MJCF[nMJCF] = {
{"<"},
{"layer", "*", "texture", "role"},
{">"},
{"joint",
"?",
"type",
"group",
"pos",
"axis",
"springdamper",
"limited",
"actuatorfrclimited",
"solreflimit",
"solimplimit",
"solreffriction",
"solimpfriction",
"stiffness",
"range",
"actuatorfrcrange",
"actuatorgravcomp",
"margin",
"ref",
"springref",
"armature",
"damping",
"frictionloss",
"user"},
{"geom", "?", "type", "pos", "quat",
"contype", "conaffinity", "condim", "group", "priority",
"size", "material", "friction", "mass", "density",
"shellinertia", "solmix", "solref", "solimp", "margin",
"gap", "fromto", "axisangle", "xyaxes", "zaxis",
"euler", "hfield", "mesh", "fitscale", "rgba",
"fluidshape", "fluidcoef", "user"},
{"site", "?", "type", "group", "pos", "quat", "material", "size", "fromto",
"axisangle", "xyaxes", "zaxis", "euler", "rgba", "user"},
{"camera", "?", "projection",
"fovy", "ipd", "resolution",
"output", "pos", "quat",
"axisangle", "xyaxes", "zaxis",
"euler", "mode", "focal",
"focalpixel", "principal", "principalpixel",
"sensorsize", "user"},
{"joint", "?", "type", "group", "pos", "axis", "springdamper",
"limited", "actuatorfrclimited", "solreflimit", "solimplimit",
"solreffriction", "solimpfriction", "stiffness", "range", "actuatorfrcrange",
"actuatorgravcomp", "margin", "ref", "springref", "armature", "damping",
"frictionloss", "user"},
{"geom", "?", "type", "pos", "quat", "contype", "conaffinity", "condim",
"group", "priority", "size", "material", "friction", "mass", "density",
"shellinertia", "solmix", "solref", "solimp",
"margin", "gap", "fromto", "axisangle", "xyaxes", "zaxis", "euler",
"hfield", "mesh", "fitscale", "rgba", "fluidshape", "fluidcoef", "user"},
{"site", "?", "type", "group", "pos", "quat", "material",
"size", "fromto", "axisangle", "xyaxes", "zaxis", "euler", "rgba", "user"},
{"camera", "?", "projection", "fovy", "ipd", "resolution", "output", "pos", "quat",
"axisangle", "xyaxes", "zaxis", "euler", "mode", "focal", "focalpixel",
"principal", "principalpixel", "sensorsize", "user"},
{"light", "?", "pos", "dir", "bulbradius", "intensity", "range",
"directional", "type", "castshadow", "active", "attenuation", "cutoff",
"exponent", "ambient", "diffuse", "specular", "mode"},
"directional", "type", "castshadow", "active", "attenuation", "cutoff", "exponent",
"ambient", "diffuse", "specular", "mode"},
{"pair", "?", "condim", "friction", "solref", "solreffriction", "solimp",
"gap", "margin"},
{"equality", "?", "active", "solref", "solimp"},
{"tendon", "?", "group", "limited", "range", "solreflimit", "solimplimit",
"solreffriction", "solimpfriction", "frictionloss", "springlength",
"width", "material", "margin", "stiffness", "damping", "rgba", "user"},
{"general", "?", "ctrllimited", "forcelimited", "actlimited",
"ctrlrange", "forcerange", "actrange", "gear", "damping",
"armature", "cranklength", "user", "group", "nsample",
"interp", "delay", "actdim", "dyntype", "gaintype",
"biastype", "dynprm", "gainprm", "biasprm", "actearly"},
{"tendon", "?", "group", "limited", "range",
"solreflimit", "solimplimit", "solreffriction", "solimpfriction",
"frictionloss", "springlength", "width", "material",
"margin", "stiffness", "damping", "rgba", "user"},
{"general", "?", "ctrllimited", "forcelimited", "actlimited", "ctrlrange", "forcerange",
"actrange", "gear", "damping", "armature", "cranklength", "user", "group", "nsample",
"interp", "delay", "actdim", "dyntype", "gaintype", "biastype", "dynprm", "gainprm",
"biasprm", "actearly"},
{"motor", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample",
"interp", "delay"},
{"position", "?", "ctrllimited", "forcelimited", "ctrlrange",
"inheritrange", "forcerange", "gear", "damping", "armature",
"cranklength", "user", "group", "nsample", "interp",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay"},
{"position", "?", "ctrllimited", "forcelimited", "ctrlrange", "inheritrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp",
"delay", "kp", "kv", "dampratio", "timeconst"},
{"velocity", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample",
"interp", "delay", "kv"},
{"intvelocity", "?", "ctrllimited", "forcelimited", "ctrlrange",
"forcerange", "actrange", "inheritrange", "gear", "damping",
"armature", "cranklength", "user", "group", "nsample",
"interp", "delay", "kp", "kv", "dampratio"},
{"damper", "?", "forcelimited", "ctrlrange", "forcerange", "gear",
"damping", "armature", "cranklength", "user", "group", "nsample", "interp",
"delay", "kv"},
{"velocity", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange", "gear",
"damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay", "kv"},
{"intvelocity", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange", "actrange",
"inheritrange", "gear", "damping", "armature", "cranklength", "user", "group",
"nsample", "interp", "delay", "kp", "kv", "dampratio"},
{"damper", "?", "forcelimited", "ctrlrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay", "kv"},
{"cylinder", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample",
"interp", "delay", "timeconst", "area", "diameter", "bias"},
{"muscle", "?", "ctrllimited", "forcelimited", "ctrlrange",
"forcerange", "gear", "damping", "armature", "cranklength",
"user", "group", "nsample", "interp", "delay",
"timeconst", "range", "force", "scale", "lmin",
"lmax", "vmax", "fpmax", "fvmax"},
{"adhesion", "?", "forcelimited", "ctrlrange", "forcerange", "gain", "user",
"group", "nsample", "interp", "delay"},
{"dcmotor", "?", "ctrllimited", "ctrlrange", "gear",
"damping", "armature", "cranklength", "user", "group",
"nsample", "interp", "delay", "motorconst", "resistance",
"nominal", "saturation", "inductance", "cogging", "controller",
"input", "thermal", "lugre"},
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay",
"timeconst", "area", "diameter", "bias"},
{"muscle", "?", "ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay",
"timeconst", "range", "force", "scale",
"lmin", "lmax", "vmax", "fpmax", "fvmax"},
{"adhesion", "?", "forcelimited", "ctrlrange", "forcerange",
"gain", "user", "group", "nsample", "interp", "delay"},
{"dcmotor", "?", "ctrllimited", "ctrlrange",
"gear", "damping", "armature", "cranklength", "user", "group", "nsample", "interp", "delay",
"motorconst", "resistance", "nominal", "saturation",
"inductance", "cogging", "controller", "input", "thermal", "lugre"},
{">"},
{"extension", "*"},
@@ -403,67 +318,40 @@ std::vector<const char*> MJCF[nMJCF] = {
{"config", "*", "key", "value"},
{">"},
{">"},
{"hfield", "*", "name", "content_type", "file", "nrow", "ncol", "size",
"elevation"},
{"skin", "*", "name", "file", "material", "rgba", "inflate", "vertex",
"texcoord", "face", "group"},
{"hfield", "*", "name", "content_type", "file", "nrow", "ncol", "size", "elevation"},
{"skin", "*", "name", "file", "material", "rgba", "inflate",
"vertex", "texcoord", "face", "group"},
{"<"},
{"bone", "*", "body", "bindpos", "bindquat", "vertid", "vertweight"},
{">"},
{"texture", "*", "name", "type", "colorspace",
"content_type", "file", "gridsize", "gridlayout", "fileright",
"fileleft", "fileup", "filedown", "filefront", "fileback",
"builtin", "rgb1", "rgb2", "mark", "markrgb",
"random", "width", "height", "hflip", "vflip",
"nchannel"},
{"texture", "*", "name", "type", "colorspace", "content_type", "file", "gridsize",
"gridlayout", "fileright", "fileleft", "fileup", "filedown", "filefront", "fileback",
"builtin", "rgb1", "rgb2", "mark", "markrgb", "random", "width", "height",
"hflip", "vflip", "nchannel"},
{"material", "*", "name", "class", "texture", "texrepeat", "texuniform",
"emission", "specular", "shininess", "reflectance", "metallic",
"roughness", "rgba"},
"emission", "specular", "shininess", "reflectance", "metallic", "roughness", "rgba"},
{"<"},
{"layer", "*", "texture", "role"},
{">"},
{"model", "*", "name", "file", "content_type"},
{">"},
{"body", "R", "name", "childclass", "pos", "quat", "mocap", "axisangle",
"xyaxes", "zaxis", "euler", "gravcomp", "sleep", "user"},
{"body", "R", "name", "childclass", "pos", "quat", "mocap",
"axisangle", "xyaxes", "zaxis", "euler", "gravcomp", "sleep", "user"},
{"<"},
{"inertial", "?", "pos", "quat", "mass", "diaginertia", "axisangle",
"xyaxes", "zaxis", "euler", "fullinertia"},
{"joint",
"*",
"name",
"class",
"type",
"group",
"pos",
"axis",
"springdamper",
"limited",
"actuatorfrclimited",
"solreflimit",
"solimplimit",
"solreffriction",
"solimpfriction",
"stiffness",
"range",
"actuatorfrcrange",
"actuatorgravcomp",
"margin",
"ref",
"springref",
"armature",
"damping",
"frictionloss",
"user"},
{"inertial", "?", "pos", "quat", "mass", "diaginertia",
"axisangle", "xyaxes", "zaxis", "euler", "fullinertia"},
{"joint", "*", "name", "class", "type", "group", "pos", "axis",
"springdamper", "limited", "actuatorfrclimited",
"solreflimit", "solimplimit", "solreffriction", "solimpfriction",
"stiffness", "range", "actuatorfrcrange", "actuatorgravcomp", "margin", "ref",
"springref", "armature", "damping", "frictionloss", "user"},
{"freejoint", "*", "name", "group", "align"},
{"geom", "*", "name", "class", "type",
"contype", "conaffinity", "condim", "group", "priority",
"size", "material", "friction", "mass", "density",
"shellinertia", "solmix", "solref", "solimp", "margin",
"gap", "fromto", "pos", "quat", "axisangle",
"xyaxes", "zaxis", "euler", "hfield", "mesh",
"fitscale", "rgba", "fluidshape", "fluidcoef", "user"},
{"geom", "*", "name", "class", "type", "contype", "conaffinity", "condim",
"group", "priority", "size", "material", "friction", "mass", "density",
"shellinertia", "solmix", "solref", "solimp",
"margin", "gap", "fromto", "pos", "quat", "axisangle", "xyaxes", "zaxis", "euler",
"hfield", "mesh", "fitscale", "rgba", "fluidshape", "fluidcoef", "user"},
{"<"},
{"plugin", "*", "plugin", "instance"},
{"<"},
@@ -471,52 +359,45 @@ std::vector<const char*> MJCF[nMJCF] = {
{">"},
{">"},
{"attach", "*", "model", "body", "frame", "prefix"},
{"site", "*", "name", "class", "type", "group", "pos", "quat", "material",
"size", "fromto", "axisangle", "xyaxes", "zaxis", "euler", "rgba", "user"},
{"camera", "*", "name", "class", "projection",
"fovy", "ipd", "resolution", "output", "pos",
"quat", "axisangle", "xyaxes", "zaxis", "euler",
"mode", "target", "focal", "focalpixel", "principal",
"principalpixel", "sensorsize", "user"},
{"light", "*", "name", "class", "directional",
"type", "castshadow", "active", "pos", "dir",
"bulbradius", "intensity", "range", "attenuation", "cutoff",
"exponent", "ambient", "diffuse", "specular", "mode",
"target", "texture"},
{"site", "*", "name", "class", "type", "group", "pos", "quat",
"material", "size", "fromto", "axisangle", "xyaxes", "zaxis", "euler", "rgba", "user"},
{"camera", "*", "name", "class", "projection", "fovy", "ipd", "resolution", "output", "pos",
"quat", "axisangle", "xyaxes", "zaxis", "euler", "mode", "target",
"focal", "focalpixel", "principal", "principalpixel", "sensorsize", "user"},
{"light", "*", "name", "class", "directional", "type", "castshadow", "active",
"pos", "dir", "bulbradius", "intensity", "range", "attenuation", "cutoff",
"exponent", "ambient", "diffuse", "specular", "mode", "target", "texture"},
{"plugin", "*", "plugin", "instance"},
{"<"},
{"config", "*", "key", "value"},
{">"},
{"composite", "*", "prefix", "type", "count", "offset", "vertex", "initial",
"curve", "size", "quat"},
{"composite", "*", "prefix", "type", "count", "offset",
"vertex", "initial", "curve", "size", "quat"},
{"<"},
{"joint", "*", "kind", "group", "stiffness", "damping", "armature",
"solreffix", "solimpfix", "type", "axis", "limited", "range", "margin",
"solreflimit", "solimplimit", "frictionloss", "solreffriction",
"solimpfriction"},
{"skin", "?", "texcoord", "material", "group", "rgba", "inflate",
"subgrid"},
{"geom", "?", "type", "contype", "conaffinity", "condim", "group",
"priority", "size", "material", "rgba", "friction", "mass", "density",
"solmix", "solref", "solimp", "margin", "gap"},
"solreffix", "solimpfix", "type", "axis",
"limited", "range", "margin", "solreflimit", "solimplimit",
"frictionloss", "solreffriction", "solimpfriction"},
{"skin", "?", "texcoord", "material", "group", "rgba", "inflate", "subgrid"},
{"geom", "?", "type", "contype", "conaffinity", "condim",
"group", "priority", "size", "material", "rgba", "friction", "mass",
"density", "solmix", "solref", "solimp", "margin", "gap"},
{"site", "?", "group", "size", "material", "rgba"},
{"plugin", "*", "plugin", "instance"},
{"<"},
{"config", "*", "key", "value"},
{">"},
{">"},
{"flexcomp", "*", "name", "type", "group", "dim",
"dof", "count", "cellcount", "spacing", "radius", "rigid",
"mass", "inertiabox", "scale", "file", "point", "element",
"texcoord", "material", "rgba", "flatskin", "pos", "quat",
"axisangle", "xyaxes", "zaxis", "euler", "origin"},
{"flexcomp", "*", "name", "type", "group", "dim", "dof",
"count", "cellcount", "spacing", "radius", "rigid", "mass", "inertiabox",
"scale", "file", "point", "element", "texcoord", "material", "rgba",
"flatskin", "pos", "quat", "axisangle", "xyaxes", "zaxis", "euler", "origin"},
{"<"},
{"edge", "?", "equality", "solref", "solimp", "stiffness", "damping"},
{"elasticity", "?", "young", "poisson", "damping", "thickness",
"elastic2d"},
{"contact", "?", "contype", "conaffinity", "condim", "priority", "friction",
"solmix", "solref", "solimp", "margin", "gap", "internal", "selfcollide",
"activelayers", "passive"},
{"elasticity", "?", "young", "poisson", "damping", "thickness", "elastic2d"},
{"contact", "?", "contype", "conaffinity", "condim", "priority",
"friction", "solmix", "solref", "solimp", "margin", "gap",
"internal", "selfcollide", "activelayers", "passive"},
{"pin", "*", "id", "range", "grid", "gridrange"},
{"plugin", "*", "plugin", "instance"},
{"<"},
@@ -527,19 +408,17 @@ std::vector<const char*> MJCF[nMJCF] = {
{"deformable", "*"},
{"<"},
{"flex", "*", "name", "group", "dim", "radius", "material", "rgba",
"flatskin", "body", "vertex", "element", "texcoord", "elemtexcoord",
"node", "cellcount", "dof"},
{"flex", "*", "name", "group", "dim", "radius", "material", "rgba", "flatskin", "body",
"vertex", "element", "texcoord", "elemtexcoord", "node", "cellcount", "dof"},
{"<"},
{"contact", "?", "contype", "conaffinity", "condim", "priority", "friction",
"solmix", "solref", "solimp", "margin", "gap", "internal", "selfcollide",
"activelayers", "passive"},
{"contact", "?", "contype", "conaffinity", "condim", "priority",
"friction", "solmix", "solref", "solimp", "margin", "gap",
"internal", "selfcollide", "activelayers", "passive"},
{"edge", "?", "stiffness", "damping"},
{"elasticity", "?", "young", "poisson", "damping", "thickness",
"elastic2d"},
{"elasticity", "?", "young", "poisson", "damping", "thickness", "elastic2d"},
{">"},
{"skin", "*", "name", "file", "material", "rgba", "inflate", "vertex",
"texcoord", "face", "group"},
{"skin", "*", "name", "file", "material", "rgba", "inflate",
"vertex", "texcoord", "face", "group"},
{"<"},
{"bone", "*", "body", "bindpos", "bindquat", "vertid", "vertweight"},
{">"},
@@ -554,70 +433,36 @@ std::vector<const char*> MJCF[nMJCF] = {
{"equality", "*"},
{"<"},
{"connect", "*", "name", "class", "body1", "body2", "anchor", "site1",
"site2", "active", "solref", "solimp"},
{"connect", "*", "name", "class", "body1", "body2", "anchor",
"site1", "site2", "active", "solref", "solimp"},
{"weld", "*", "name", "class", "body1", "body2", "relpose", "anchor",
"site1", "site2", "active", "solref", "solimp", "torquescale"},
{"joint", "*", "name", "class", "joint1", "joint2", "polycoef", "active",
"solref", "solimp"},
{"tendon", "*", "name", "class", "tendon1", "tendon2", "polycoef", "active",
"solref", "solimp"},
{"flex", "*", "name", "class", "flex", "active", "solref", "solimp"},
{"flexvert", "*", "name", "class", "flex", "active", "solref", "solimp"},
{"flexstrain", "*", "name", "class", "flex", "cell", "active", "solref",
"solimp"},
{"joint", "*", "name", "class", "joint1", "joint2", "polycoef",
"active", "solref", "solimp"},
{"tendon", "*", "name", "class", "tendon1", "tendon2", "polycoef",
"active", "solref", "solimp"},
{"flex", "*", "name", "class", "flex",
"active", "solref", "solimp"},
{"flexvert", "*", "name", "class", "flex",
"active", "solref", "solimp"},
{"flexstrain", "*", "name", "class", "flex", "cell",
"active", "solref", "solimp"},
{">"},
{"tendon", "*"},
{"<"},
{"spatial",
"*",
"name",
"class",
"group",
"limited",
"actuatorfrclimited",
"range",
"actuatorfrcrange",
"solreflimit",
"solimplimit",
"solreffriction",
"solimpfriction",
"frictionloss",
"springlength",
"width",
"material",
"margin",
"stiffness",
"damping",
"armature",
"rgba",
"user"},
{"spatial", "*", "name", "class", "group", "limited", "actuatorfrclimited", "range",
"actuatorfrcrange", "solreflimit", "solimplimit", "solreffriction", "solimpfriction",
"frictionloss", "springlength", "width", "material",
"margin", "stiffness", "damping", "armature", "rgba", "user"},
{"<"},
{"site", "*", "site"},
{"geom", "*", "geom", "sidesite"},
{"pulley", "*", "divisor"},
{">"},
{"fixed",
"*",
"name",
"class",
"group",
"limited",
"actuatorfrclimited",
"range",
"actuatorfrcrange",
"solreflimit",
"solimplimit",
"solreffriction",
"solimpfriction",
"frictionloss",
"springlength",
"margin",
"stiffness",
"damping",
"armature",
"user"},
{"fixed", "*", "name", "class", "group", "limited", "actuatorfrclimited", "range",
"actuatorfrcrange", "solreflimit", "solimplimit", "solreffriction", "solimpfriction",
"frictionloss", "springlength", "margin", "stiffness", "damping", "armature", "user"},
{"<"},
{"joint", "*", "joint", "coef"},
{">"},
@@ -625,89 +470,61 @@ std::vector<const char*> MJCF[nMJCF] = {
{"actuator", "*"},
{"<"},
{"general", "*", "name",
"class", "group", "nsample",
"interp", "delay", "ctrllimited",
"forcelimited", "actlimited", "ctrlrange",
"forcerange", "actrange", "lengthrange",
"gear", "damping", "armature",
"cranklength", "user", "joint",
"jointinparent", "tendon", "slidersite",
"cranksite", "site", "refsite",
"body", "actdim", "dyntype",
"gaintype", "biastype", "dynprm",
"gainprm", "biasprm", "actearly"},
{"motor", "*", "name", "class", "group",
"nsample", "interp", "delay", "ctrllimited", "forcelimited",
"ctrlrange", "forcerange", "lengthrange", "gear", "damping",
"armature", "cranklength", "user", "joint", "jointinparent",
"tendon", "slidersite", "cranksite", "site", "refsite"},
{"position", "*", "name",
"class", "group", "nsample",
"interp", "delay", "ctrllimited",
"forcelimited", "ctrlrange", "inheritrange",
"forcerange", "lengthrange", "gear",
"damping", "armature", "cranklength",
"user", "joint", "jointinparent",
"tendon", "slidersite", "cranksite",
"site", "refsite", "kp",
"kv", "dampratio", "timeconst"},
{"velocity", "*", "name", "class", "group",
"nsample", "interp", "delay", "ctrllimited", "forcelimited",
"ctrlrange", "forcerange", "lengthrange", "gear", "damping",
"armature", "cranklength", "user", "joint", "jointinparent",
"tendon", "slidersite", "cranksite", "site", "refsite",
{"general", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "actlimited", "ctrlrange", "forcerange", "actrange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"body", "actdim", "dyntype", "gaintype", "biastype", "dynprm", "gainprm", "biasprm",
"actearly"},
{"motor", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite"},
{"position", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "ctrlrange", "inheritrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"kp", "kv", "dampratio", "timeconst"},
{"velocity", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"kv"},
{"intvelocity", "*",
"name", "class",
"group", "nsample",
"interp", "delay",
{"intvelocity", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited",
"ctrlrange", "forcerange",
"actrange", "inheritrange",
"lengthrange", "gear",
"damping", "armature",
"cranklength", "user",
"joint", "jointinparent",
"tendon", "slidersite",
"cranksite", "site",
"refsite", "kp",
"kv", "dampratio"},
{"damper", "*", "name", "class", "group",
"nsample", "interp", "delay", "forcelimited", "ctrlrange",
"forcerange", "lengthrange", "gear", "damping", "armature",
"cranklength", "user", "joint", "jointinparent", "tendon",
"slidersite", "cranksite", "site", "refsite", "kv"},
{"cylinder", "*", "name", "class", "group",
"nsample", "interp", "delay", "ctrllimited", "forcelimited",
"ctrlrange", "forcerange", "lengthrange", "gear", "damping",
"armature", "cranklength", "user", "joint", "jointinparent",
"tendon", "slidersite", "cranksite", "site", "refsite",
"ctrlrange", "forcerange", "actrange", "inheritrange", "lengthrange",
"gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"kp", "kv", "dampratio"},
{"damper", "*", "name", "class", "group", "nsample", "interp", "delay",
"forcelimited", "ctrlrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"kv"},
{"cylinder", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"timeconst", "area", "diameter", "bias"},
{"muscle", "*", "name", "class", "group",
"nsample", "interp", "delay", "ctrllimited", "forcelimited",
"ctrlrange", "forcerange", "lengthrange", "gear", "damping",
"armature", "cranklength", "user", "joint", "jointinparent",
"tendon", "slidersite", "cranksite", "timeconst", "tausmooth",
"range", "force", "scale", "lmin", "lmax",
"vmax", "fpmax", "fvmax"},
{"muscle", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "ctrlrange", "forcerange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite",
"timeconst", "tausmooth", "range", "force", "scale",
"lmin", "lmax", "vmax", "fpmax", "fvmax"},
{"adhesion", "*", "name", "class", "group", "nsample", "interp", "delay",
"forcelimited", "ctrlrange", "forcerange", "user", "body", "gain"},
{"dcmotor", "*", "name", "class", "group",
"nsample", "interp", "delay", "ctrllimited", "ctrlrange",
"lengthrange", "gear", "damping", "armature", "cranklength",
"user", "joint", "jointinparent", "tendon", "slidersite",
"cranksite", "site", "refsite", "motorconst", "resistance",
"nominal", "saturation", "inductance", "cogging", "controller",
"thermal", "lugre", "input"},
{"plugin", "*", "name", "class",
"plugin", "instance", "group", "nsample",
"interp", "delay", "ctrllimited", "forcelimited",
"actlimited", "ctrlrange", "forcerange", "actrange",
"lengthrange", "gear", "damping", "armature",
"cranklength", "joint", "jointinparent", "site",
"actdim", "dyntype", "dynprm", "tendon",
"cranksite", "slidersite", "user", "actearly"},
{"dcmotor", "*", "name", "class", "group", "nsample", "interp", "delay",
"ctrllimited", "ctrlrange",
"lengthrange", "gear", "damping", "armature", "cranklength", "user",
"joint", "jointinparent", "tendon", "slidersite", "cranksite", "site", "refsite",
"motorconst", "resistance", "nominal", "saturation",
"inductance", "cogging", "controller", "thermal", "lugre", "input"},
{"plugin", "*", "name", "class", "plugin", "instance", "group", "nsample", "interp", "delay",
"ctrllimited", "forcelimited", "actlimited", "ctrlrange", "forcerange", "actrange",
"lengthrange", "gear", "damping", "armature", "cranklength", "joint", "jointinparent",
"site", "actdim", "dyntype", "dynprm", "tendon", "cranksite", "slidersite", "user",
"actearly"},
{"<"},
{"config", "*", "key", "value"},
{">"},
@@ -715,105 +532,58 @@ std::vector<const char*> MJCF[nMJCF] = {
{"sensor", "*"},
{"<"},
{"touch", "*", "name", "site", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"accelerometer", "*", "name", "site", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"velocimeter", "*", "name", "site", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"gyro", "*", "name", "site", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"force", "*", "name", "site", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"torque", "*", "name", "site", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"magnetometer", "*", "name", "site", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"camprojection", "*", "name", "site", "camera", "nsample", "interp",
"delay", "interval", "cutoff", "noise", "user"},
{"rangefinder", "*", "name", "site", "camera", "data", "nsample", "interp",
"delay", "interval", "cutoff", "noise", "user"},
{"jointpos", "*", "name", "joint", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"jointvel", "*", "name", "joint", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"tendonpos", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"tendonvel", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"actuatorpos", "*", "name", "actuator", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"actuatorvel", "*", "name", "actuator", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"actuatorfrc", "*", "name", "actuator", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"jointactuatorfrc", "*", "name", "joint", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"tendonactuatorfrc", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"ballquat", "*", "name", "joint", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"ballangvel", "*", "name", "joint", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"jointlimitpos", "*", "name", "joint", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"jointlimitvel", "*", "name", "joint", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"jointlimitfrc", "*", "name", "joint", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"tendonlimitpos", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"tendonlimitvel", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"tendonlimitfrc", "*", "name", "tendon", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"framepos", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framequat", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framexaxis", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"frameyaxis", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framezaxis", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framelinvel", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"frameangvel", "*", "name", "objtype", "objname", "reftype", "refname",
"nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framelinacc", "*", "name", "objtype", "objname", "nsample", "interp",
"delay", "interval", "cutoff", "noise", "user"},
{"frameangacc", "*", "name", "objtype", "objname", "nsample", "interp",
"delay", "interval", "cutoff", "noise", "user"},
{"subtreecom", "*", "name", "body", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"subtreelinvel", "*", "name", "body", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"subtreeangmom", "*", "name", "body", "nsample", "interp", "delay",
"interval", "cutoff", "noise", "user"},
{"insidesite", "*", "name", "site", "objtype", "objname", "nsample",
"interp", "delay", "interval", "cutoff", "noise", "user"},
{"distance", "*", "name", "geom1", "geom2", "body1", "body2", "nsample",
"interp", "delay", "interval", "cutoff", "noise", "user"},
{"normal", "*", "name", "geom1", "geom2", "body1", "body2", "nsample",
"interp", "delay", "interval", "cutoff", "noise", "user"},
{"fromto", "*", "name", "geom1", "geom2", "body1", "body2", "nsample",
"interp", "delay", "interval", "cutoff", "noise", "user"},
{"contact", "*", "name", "geom1", "geom2", "body1", "body2",
"subtree1", "subtree2", "site", "num", "data", "reduce", "nsample",
"interp", "delay", "interval", "cutoff", "noise", "user"},
{"e_potential", "*", "name", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"e_kinetic", "*", "name", "nsample", "interp", "delay", "interval",
"cutoff", "noise", "user"},
{"clock", "*", "name", "nsample", "interp", "delay", "interval", "cutoff",
"noise", "user"},
{"tactile", "*", "name", "geom", "mesh", "nsample", "interp", "delay",
"interval", "user"},
{"user", "*", "name", "objtype", "objname", "datatype", "needstage", "dim",
"cutoff", "noise", "user"},
{"plugin", "*", "name", "plugin", "instance", "cutoff", "objtype",
"objname", "reftype", "refname", "user"},
{"touch", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"accelerometer", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"velocimeter", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"gyro", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"force", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"torque", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"magnetometer", "*", "name", "site", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"camprojection", "*", "name", "site", "camera", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"rangefinder", "*", "name", "site", "camera", "data", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointpos", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointvel", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonpos", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonvel", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"actuatorpos", "*", "name", "actuator", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"actuatorvel", "*", "name", "actuator", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"actuatorfrc", "*", "name", "actuator", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointactuatorfrc", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonactuatorfrc", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"ballquat", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"ballangvel", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointlimitpos", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointlimitvel", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"jointlimitfrc", "*", "name", "joint", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonlimitpos", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonlimitvel", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tendonlimitfrc", "*", "name", "tendon", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framepos", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framequat", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framexaxis", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"frameyaxis", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framezaxis", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framelinvel", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"frameangvel", "*", "name", "objtype", "objname", "reftype", "refname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"framelinacc", "*", "name", "objtype", "objname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"frameangacc", "*", "name", "objtype", "objname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"subtreecom", "*", "name", "body", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"subtreelinvel", "*", "name", "body", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"subtreeangmom", "*", "name", "body", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"insidesite", "*", "name", "site", "objtype", "objname", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"distance", "*", "name", "geom1", "geom2", "body1", "body2", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"normal", "*", "name", "geom1", "geom2", "body1", "body2", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"fromto", "*", "name", "geom1", "geom2", "body1", "body2", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"contact", "*", "name", "geom1", "geom2", "body1", "body2", "subtree1", "subtree2", "site",
"num", "data", "reduce", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"e_potential", "*", "name", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"e_kinetic", "*", "name", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"clock", "*", "name", "nsample", "interp", "delay", "interval", "cutoff", "noise", "user"},
{"tactile", "*", "name", "geom", "mesh", "nsample", "interp", "delay", "interval", "user"},
{"user", "*", "name", "objtype", "objname", "datatype", "needstage",
"dim", "cutoff", "noise", "user"},
{"plugin", "*", "name", "plugin", "instance", "cutoff", "objtype", "objname", "reftype", "refname",
"user"},
{"<"},
{"config", "*", "key", "value"},
{">"},
@@ -821,10 +591,11 @@ std::vector<const char*> MJCF[nMJCF] = {
{"keyframe", "*"},
{"<"},
{"key", "*", "name", "time", "qpos", "qvel", "act", "mpos", "mquat",
"ctrl"},
{"key", "*", "name", "time", "qpos", "qvel", "act", "mpos", "mquat", "ctrl"},
{">"},
{">"}};
{">"}
};
// clang-format on