Skip to content

Commit e245c8d

Browse files
committed
Allow body attribute in actuator/plugin.
1 parent 4f43a7d commit e245c8d

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
@@ -5980,10 +5980,12 @@ Associate this actuator with an :ref:`engine plugin<exPlugin>`. Either :at:`plug
59805980

59815981
.. _actuator-plugin-actearly:
59825982

5983+
.. _actuator-plugin-body:
5984+
59835985
.. |actuator/plugin attrib list| replace:: :at:`name`, :at:`class`, :at:`group`, :at:`actlimited`, :at:`ctrllimited`,
59845986
:at:`forcelimited`, :at:`ctrlrange`, :at:`forcerange`, :at:`lengthrange`, :at:`gear`, :at:`cranklength`,
59855987
:at:`joint`, :at:`jointinparent`, :at:`site`, :at:`tendon`, :at:`cranksite`, :at:`slidersite`, :at:`user`,
5986-
:at:`actdim`, :at:`dynprm`, :at:`actearly`
5988+
:at:`actdim`, :at:`dynprm`, :at:`actearly`, :at:`body`
59875989

59885990
|actuator/plugin attrib list|
59895991
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
@@ -428,11 +428,11 @@ const char* MJCF[nMJCF][mjXATTRNUM] = {
428428
"lmin", "lmax", "vmax", "fpmax", "fvmax"},
429429
{"adhesion", "*", "9", "name", "class", "group",
430430
"forcelimited", "ctrlrange", "forcerange", "user", "body", "gain"},
431-
{"plugin", "*", "25", "name", "class", "plugin", "instance", "group",
431+
{"plugin", "*", "26", "name", "class", "plugin", "instance", "group",
432432
"ctrllimited", "forcelimited", "actlimited", "ctrlrange", "forcerange", "actrange",
433433
"lengthrange", "gear", "cranklength", "joint", "jointinparent",
434434
"site", "actdim", "dyntype", "dynprm", "tendon", "cranksite", "slidersite", "user",
435-
"actearly"},
435+
"actearly", "body"},
436436
{"<"},
437437
{"config", "*", "2", "key", "value"},
438438
{">"},

0 commit comments

Comments
 (0)