fixes in relative imports
This commit is contained in:
@@ -0,0 +1 @@
|
||||
import gym
|
||||
@@ -4,6 +4,12 @@ The randomization include swing_offset, extension_offset of all legs that mimics
|
||||
bent legs, desired_pitch from user input, battery voltage and motor damping.
|
||||
"""
|
||||
|
||||
import os, inspect
|
||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
parentdir = os.path.dirname(os.path.dirname(currentdir))
|
||||
parentdir = os.path.dirname(os.path.dirname(parentdir))
|
||||
os.sys.path.insert(0,parentdir)
|
||||
|
||||
import numpy as np
|
||||
import tensorflow as tf
|
||||
from pybullet_envs.minitaur.envs import env_randomizer_base
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
"""Randomize the minitaur_gym_env when reset() is called."""
|
||||
import random
|
||||
|
||||
import os, inspect
|
||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
parentdir = os.path.dirname(os.path.dirname(currentdir))
|
||||
parentdir = os.path.dirname(os.path.dirname(parentdir))
|
||||
os.sys.path.insert(0,parentdir)
|
||||
|
||||
import numpy as np
|
||||
from pybullet_envs.minitaur.envs import env_randomizer_base
|
||||
|
||||
|
||||
@@ -7,6 +7,12 @@ from __future__ import print_function
|
||||
import functools
|
||||
import random
|
||||
|
||||
import os, inspect
|
||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
parentdir = os.path.dirname(os.path.dirname(currentdir))
|
||||
parentdir = os.path.dirname(os.path.dirname(parentdir))
|
||||
os.sys.path.insert(0,parentdir)
|
||||
|
||||
import numpy as np
|
||||
import tensorflow as tf
|
||||
from pybullet_envs.minitaur.envs import env_randomizer_base
|
||||
|
||||
@@ -4,6 +4,12 @@ from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import os, inspect
|
||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
parentdir = os.path.dirname(os.path.dirname(currentdir))
|
||||
parentdir = os.path.dirname(os.path.dirname(parentdir))
|
||||
os.sys.path.insert(0,parentdir)
|
||||
|
||||
import math
|
||||
import numpy as np
|
||||
from pybullet_envs.minitaur.envs import env_randomizer_base
|
||||
|
||||
@@ -4,6 +4,12 @@ from __future__ import absolute_import
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
|
||||
import os, inspect
|
||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||
parentdir = os.path.dirname(os.path.dirname(currentdir))
|
||||
parentdir = os.path.dirname(os.path.dirname(parentdir))
|
||||
os.sys.path.insert(0,parentdir)
|
||||
|
||||
import itertools
|
||||
import math
|
||||
import enum
|
||||
|
||||
Reference in New Issue
Block a user