From 620ab9b796d0abde0d1f53140f9f759665df0053 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Wed, 6 Dec 2023 04:27:34 -0800 Subject: [PATCH] Add `kv` damping attribute to `position` and `intvelocity` actuator shortcuts. PiperOrigin-RevId: 588377097 Change-Id: I07d856807ab95166c02dd90dcd4ed62af4eefd60 --- dm_control/mjcf/schema.xml | 6 ++++++ dm_control/mjcf/traversal_utils_test.py | 1 + 2 files changed, 7 insertions(+) diff --git a/dm_control/mjcf/schema.xml b/dm_control/mjcf/schema.xml index 10e0ee0f..8237ed98 100644 --- a/dm_control/mjcf/schema.xml +++ b/dm_control/mjcf/schema.xml @@ -439,6 +439,7 @@ + @@ -466,6 +467,7 @@ + @@ -742,6 +744,7 @@ + @@ -767,6 +770,7 @@ + @@ -1965,6 +1969,7 @@ + @@ -2012,6 +2017,7 @@ + diff --git a/dm_control/mjcf/traversal_utils_test.py b/dm_control/mjcf/traversal_utils_test.py index 1b412cd0..688ed61a 100644 --- a/dm_control/mjcf/traversal_utils_test.py +++ b/dm_control/mjcf/traversal_utils_test.py @@ -155,6 +155,7 @@ def test_resolve_actuator_defaults(self): self.assert_same_attributes(position, dict( joint=joint, kp=0.1, + kv=0.2, forcelimited='true', forcerange=[-2, 3]))