Skip to content

Commit

Permalink
importing path fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CUN-bjy committed Sep 4, 2021
1 parent d9267d0 commit c55d2b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions asset/continuous_mountain_car.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def render_goal(self, goal, end_goal, mode='human'):
carheight=20

if self.viewer is None:
from gym.envs.classic_control import rendering
from asset import rendering
self.viewer = rendering.Viewer(screen_width, screen_height)
xs = np.linspace(self.min_position, self.max_position, 100)
ys = self._height(xs)
Expand Down Expand Up @@ -235,7 +235,7 @@ def render_goal_2(self, goal1, goal2, end_goal, mode='human'):


if self.viewer is None:
from gym.envs.classic_control import rendering
from asset import rendering
self.viewer = rendering.Viewer(screen_width, screen_height)
xs = np.linspace(self.min_position, self.max_position, 100)
ys = self._height(xs)
Expand Down
4 changes: 2 additions & 2 deletions asset/pendulum.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def render(self, mode='human'):
def render_goal(self, goal, end_goal, mode='human'):

if self.viewer is None:
from gym.envs.classic_control import rendering
from asset import rendering
self.viewer = rendering.Viewer(500,500)
self.viewer.set_bounds(-2.2,2.2,-2.2,2.2)

Expand Down Expand Up @@ -138,7 +138,7 @@ def render_goal(self, goal, end_goal, mode='human'):
def render_goal_2(self, goal1, goal2, end_goal, mode='human'):

if self.viewer is None:
from gym.envs.classic_control import rendering
from asset import rendering
self.viewer = rendering.Viewer(500,500)
self.viewer.set_bounds(-2.2,2.2,-2.2,2.2)

Expand Down

0 comments on commit c55d2b2

Please sign in to comment.