Use pybullet_utils.bullet_client for all our BulletClient needs

This commit is contained in:
David Rusu
2019-12-08 20:10:12 -05:00
parent 08bc887b19
commit dd3bdf0da1
8 changed files with 18 additions and 101 deletions

View File

@@ -12,7 +12,7 @@ import numpy as np
import pybullet
from . import racecar
import random
from . import bullet_client
import pybullet_utils.bullet_client as bc
import pybullet_data
from pkg_resources import parse_version
@@ -40,9 +40,9 @@ class RacecarGymEnv(gym.Env):
self._renders = renders
self._isDiscrete = isDiscrete
if self._renders:
self._p = bullet_client.BulletClient(connection_mode=pybullet.GUI)
self._p = bc.BulletClient(connection_mode=pybullet.GUI)
else:
self._p = bullet_client.BulletClient()
self._p = bc.BulletClient()
self.seed()
#self.reset()