Skip to content

Commit 601f8ed

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Add filterexact and actearly options to MuJoCo.
When filterexact is a new dyntype which is just like the existing `filter`, but the activation state is integrated with exact integration, instead of simple Euler integration. When actearly is specified on a general actuator, `qfrc_actuator` is computed using the next timestep's `act` value, instead of the current value. PiperOrigin-RevId: 554438423 Change-Id: I30759bb754239f2c6e2250b2d65351a5ec633310
1 parent d6f9cb4 commit 601f8ed

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

dm_control/mjcf/schema.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,13 @@
394394
<attribute name="gear" type="array" array_type="float" array_size="6"/>
395395
<attribute name="cranklength" type="float"/>
396396
<attribute name="user" type="array" array_type="float"/>
397-
<attribute name="dyntype" type="keyword" valid_values="none integrator filter muscle user"/>
397+
<attribute name="dyntype" type="keyword" valid_values="none integrator filter filterexact muscle user"/>
398398
<attribute name="gaintype" type="keyword" valid_values="fixed affine muscle user"/>
399399
<attribute name="biastype" type="keyword" valid_values="none affine muscle user"/>
400400
<attribute name="dynprm" type="array" array_type="float" array_size="10"/>
401401
<attribute name="gainprm" type="array" array_type="float" array_size="10"/>
402402
<attribute name="biasprm" type="array" array_type="float" array_size="10"/>
403+
<attribute name="actearly" type="keyword" valid_values="false true"/>
403404
</attributes>
404405
</element>
405406
<element name="motor">
@@ -690,12 +691,13 @@
690691
<attribute name="cranklength" type="float"/>
691692
<attribute name="user" type="array" array_type="float"/>
692693
<attribute name="actdim" type="int"/>
693-
<attribute name="dyntype" type="keyword" valid_values="none integrator filter muscle user"/>
694+
<attribute name="dyntype" type="keyword" valid_values="none integrator filter filterexact muscle user"/>
694695
<attribute name="gaintype" type="keyword" valid_values="fixed affine muscle user"/>
695696
<attribute name="biastype" type="keyword" valid_values="none affine muscle user"/>
696697
<attribute name="dynprm" type="array" array_type="float" array_size="10"/>
697698
<attribute name="gainprm" type="array" array_type="float" array_size="10"/>
698699
<attribute name="biasprm" type="array" array_type="float" array_size="10"/>
700+
<attribute name="actearly" type="keyword" valid_values="false true"/>
699701
</attributes>
700702
</element>
701703
<element name="motor">
@@ -1602,12 +1604,13 @@
16021604
<attribute name="cranksite" type="reference" reference_namespace="site"/>
16031605
<attribute name="slidersite" type="reference" reference_namespace="site"/>
16041606
<attribute name="user" type="array" array_type="float"/>
1605-
<attribute name="dyntype" type="keyword" valid_values="none integrator filter muscle user"/>
1607+
<attribute name="dyntype" type="keyword" valid_values="none integrator filter filterexact muscle user"/>
16061608
<attribute name="gaintype" type="keyword" valid_values="fixed affine muscle user"/>
16071609
<attribute name="biastype" type="keyword" valid_values="none affine muscle user"/>
16081610
<attribute name="dynprm" type="array" array_type="float" array_size="10"/>
16091611
<attribute name="gainprm" type="array" array_type="float" array_size="10"/>
16101612
<attribute name="biasprm" type="array" array_type="float" array_size="10"/>
1613+
<attribute name="actearly" type="keyword" valid_values="false true"/>
16111614
</attributes>
16121615
</element>
16131616
<element name="motor" repeated="true" namespace="actuator">

0 commit comments

Comments
 (0)