Fix format specifier
This commit is contained in:
parent
86346478f0
commit
767bd1891a
@ -95,7 +95,7 @@ class MazeEnv(gym.Env):
|
|||||||
# Increase initial z-pos of ant.
|
# Increase initial z-pos of ant.
|
||||||
height_offset = height * size_scaling
|
height_offset = height * size_scaling
|
||||||
torso = tree.find(".//body[@name='torso']")
|
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 self.blocks:
|
||||||
# If there are movable blocks, change simulation settings to perform
|
# If there are movable blocks, change simulation settings to perform
|
||||||
# better contact detection.
|
# better contact detection.
|
||||||
|
Loading…
Reference in New Issue
Block a user