From 86346478f03649b887f82eaa2dda26f50d5d5524 Mon Sep 17 00:00:00 2001 From: kngwyu Date: Fri, 26 Jun 2020 19:15:50 +0900 Subject: [PATCH] Minor fixes --- mujoco_maze/ant.py | 2 +- mujoco_maze/maze_env.py | 2 +- mujoco_maze/point.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mujoco_maze/ant.py b/mujoco_maze/ant.py index de58e29..5754209 100644 --- a/mujoco_maze/ant.py +++ b/mujoco_maze/ant.py @@ -16,7 +16,7 @@ """Wrapper for creating the ant environment in gym_mujoco.""" import math -from typing import Tuple +from typing import Optional, Tuple import numpy as np diff --git a/mujoco_maze/maze_env.py b/mujoco_maze/maze_env.py index ad9497b..be8d42f 100644 --- a/mujoco_maze/maze_env.py +++ b/mujoco_maze/maze_env.py @@ -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", "0 0 %.2f" % (0.75 + height_offset)) + 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. diff --git a/mujoco_maze/point.py b/mujoco_maze/point.py index 8721ca4..198162b 100644 --- a/mujoco_maze/point.py +++ b/mujoco_maze/point.py @@ -25,7 +25,7 @@ from mujoco_maze.agent_model import AgentModel class PointEnv(AgentModel): - VELOCITY_LIMITS: float = 100.0 + VELOCITY_LIMITS: float = 10.0 FILE = "point.xml" ORI_IND = 2