Skip to content

Commit

Permalink
Fix upright position for CMUHumanoidPositionControlledV2020.
Browse files Browse the repository at this point in the history
Closes google-deepmind#192

PiperOrigin-RevId: 387317115
Change-Id: I9025c8329597558a5f15186956862628721d7daf
  • Loading branch information
DeepMind authored and copybara-github committed Jul 28, 2021
1 parent 892b4e4 commit d1fe1d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions dm_control/locomotion/walkers/cmu_humanoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
# pylint: enable=bad-whitespace

_UPRIGHT_POS = (0.0, 0.0, 0.94)
_UPRIGHT_POS_V2020 = (0.0, 0.0, 1.143)
_UPRIGHT_QUAT = (0.859, 1.0, 1.0, 0.859)

# Height of head above which the humanoid is considered standing.
Expand Down Expand Up @@ -426,6 +427,10 @@ def _build(self, **kwargs):
super()._build(
model_version='2020', scale_default=True, include_face=True, **kwargs)

@property
def upright_pose(self):
return base.WalkerPose(xpos=_UPRIGHT_POS_V2020, xquat=_UPRIGHT_QUAT)


class CMUHumanoidObservables(legacy_base.WalkerObservables):
"""Observables for the Humanoid."""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def is_excluded(s):

setup(
name='dm_control',
version='0.0.378536820',
version='0.0.387317115',
description='Continuous control environments and MuJoCo Python bindings.',
author='DeepMind',
license='Apache License, Version 2.0',
Expand Down

0 comments on commit d1fe1d1

Please sign in to comment.