Fix format specifier

This commit is contained in:
kngwyu 2020-06-28 18:46:09 +09:00
parent 86346478f0
commit 767bd1891a

View File

@ -95,7 +95,7 @@ class MazeEnv(gym.Env):
# Increase initial z-pos of ant.
height_offset = height * size_scaling
torso = tree.find(".//body[@name='torso']")
torso.set("pos", f"0 0 {0.75 + height_offset:%.2f}")
torso.set("pos", f"0 0 {0.75 + height_offset:.2f}")
if self.blocks:
# If there are movable blocks, change simulation settings to perform
# better contact detection.