fixes in relative imports

This commit is contained in:
erwincoumans
2018-04-11 18:00:43 -07:00
parent b18d407ca4
commit 2bc246b0b1
17 changed files with 110 additions and 20 deletions

View File

@@ -6,8 +6,13 @@ It is the result of first pass system identification for the derpy robot. The
"""
import math
import os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
os.sys.path.insert(0,parentdir)
import numpy as np
import minitaur
from pybullet_envs.minitaur.envs import minitaur
KNEE_CONSTRAINT_POINT_LONG = [0, 0.0055, 0.088]
KNEE_CONSTRAINT_POINT_SHORT = [0, 0.0055, 0.100]