Skip to content

Commit 31762b7

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Silence some deprecation warnings from finger.py.
PiperOrigin-RevId: 620038603 Change-Id: Ib7bf0d712d324f17efdfe3ade053782659570b43
1 parent 3d4f11d commit 31762b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dm_control/suite/finger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def touch(self):
9090

9191
def hinge_velocity(self):
9292
"""Returns the velocity of the hinge joint."""
93-
return self.named.data.sensordata['hinge_velocity']
93+
return self.named.data.sensordata['hinge_velocity'][0]
9494

9595
def tip_position(self):
9696
"""Returns the (x,z) position of the tip relative to the hinge."""

0 commit comments

Comments
 (0)