Skip to content

Commit 8d49b00

Browse files
committed
Allow body attribute in actuator/plugin.
1 parent 401bf43 commit 8d49b00

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

doc/XMLreference.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6110,10 +6110,12 @@ Associate this actuator with an :ref:`engine plugin<exPlugin>`. Either :at:`plug
61106110

61116111
.. _actuator-plugin-actearly:
61126112

6113+
.. _actuator-plugin-body:
6114+
61136115
.. |actuator/plugin attrib list| replace:: :at:`name`, :at:`class`, :at:`group`, :at:`actlimited`, :at:`ctrllimited`,
61146116
:at:`forcelimited`, :at:`ctrlrange`, :at:`forcerange`, :at:`lengthrange`, :at:`gear`, :at:`cranklength`,
61156117
:at:`joint`, :at:`jointinparent`, :at:`site`, :at:`tendon`, :at:`cranksite`, :at:`slidersite`, :at:`user`,
6116-
:at:`actdim`, :at:`dynprm`, :at:`actearly`
6118+
:at:`actdim`, :at:`dynprm`, :at:`actearly`, :at:`body`
61176119

61186120
|actuator/plugin attrib list|
61196121
Same as in actuator/ :ref:`general <actuator-general>`.

src/xml/xml_native_reader.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,11 @@ const char* MJCF[nMJCF][mjXATTRNUM] = {
431431
"lmin", "lmax", "vmax", "fpmax", "fvmax"},
432432
{"adhesion", "*", "9", "name", "class", "group",
433433
"forcelimited", "ctrlrange", "forcerange", "user", "body", "gain"},
434-
{"plugin", "*", "25", "name", "class", "plugin", "instance", "group",
434+
{"plugin", "*", "26", "name", "class", "plugin", "instance", "group",
435435
"ctrllimited", "forcelimited", "actlimited", "ctrlrange", "forcerange", "actrange",
436436
"lengthrange", "gear", "cranklength", "joint", "jointinparent",
437437
"site", "actdim", "dyntype", "dynprm", "tendon", "cranksite", "slidersite", "user",
438-
"actearly"},
438+
"actearly", "body"},
439439
{"<"},
440440
{"config", "*", "2", "key", "value"},
441441
{">"},

0 commit comments

Comments
 (0)