Skip to content

Commit

Permalink
Silence some deprecation warnings from finger.py.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 620038603
Change-Id: Ib7bf0d712d324f17efdfe3ade053782659570b43
  • Loading branch information
nimrod-gileadi authored and copybara-github committed Mar 28, 2024
1 parent 3d4f11d commit 31762b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dm_control/suite/finger.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def touch(self):

def hinge_velocity(self):
"""Returns the velocity of the hinge joint."""
return self.named.data.sensordata['hinge_velocity']
return self.named.data.sensordata['hinge_velocity'][0]

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

0 comments on commit 31762b7

Please sign in to comment.