Skip to content

Commit fd79250

Browse files
liusiqi43copybara-github
authored andcommitted
Introduce 5v5 regulation sized pitch.
PiperOrigin-RevId: 365225597 Change-Id: Iba93803bb1f316a6fe346be7a404d3572e59697f
1 parent 2a0865b commit fd79250

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

dm_control/locomotion/soccer/pitch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,3 +713,12 @@ def initialize_episode_mjcf(self, random_state):
713713

714714
# Resize, reposition and recolor hoarding geoms.
715715
self._update_hoarding()
716+
717+
718+
# Mini-football (5v5) dimensions.
719+
_GOAL_LENGTH = 3.66
720+
_GOAL_SIDE = 1.22
721+
722+
MINI_FOOTBALL_MIN_AREA_PER_HUMANOID = 100.0
723+
MINI_FOOTBALL_MAX_AREA_PER_HUMANOID = 350.0
724+
MINI_FOOTBALL_GOAL_SIZE = (_GOAL_SIDE / 2, _GOAL_LENGTH / 2, _GOAL_SIDE / 2)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def is_excluded(s):
177177

178178
setup(
179179
name='dm_control',
180-
version='0.0.364896371',
180+
version='0.0.365225597',
181181
description='Continuous control environments and MuJoCo Python bindings.',
182182
author='DeepMind',
183183
license='Apache License, Version 2.0',

0 commit comments

Comments
 (0)