diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d34ff1b..221ba98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,4 @@ repos: - # isort for python imports - - repo: https://github.com/pycqa/isort - rev: 5.12.0 - hooks: - - id: isort - name: isort (python) # black repo for python formatting - repo: https://github.com/ambv/black rev: 22.12.0 diff --git a/dronesim/envs/BaseAviary.py b/dronesim/envs/BaseAviary.py index 2c71c6c..3d0f45a 100644 --- a/dronesim/envs/BaseAviary.py +++ b/dronesim/envs/BaseAviary.py @@ -1937,6 +1937,9 @@ def _addObstacles(self): These obstacles are loaded from standard URDF files included in Bullet. """ + print( + "Adding obstacles from BaseAviary is not possible anymore. Please load them as URDF in the main script." + ) # p.loadURDF("samurai.urdf", # physicsClientId=self.CLIENT # ) @@ -1946,18 +1949,6 @@ def _addObstacles(self): # p.loadURDF(os.path.dirname(os.path.abspath(__file__))+"/../assets/voliere.urdf", # physicsClientId=self.CLIENT # ) - shape_id = p.createVisualShape( - shapeType=p.GEOM_MESH, - fileName="/media/ge79qad/FastScratch/GFlow-3D/build/ball.obj", - physicsClientId=self.CLIENT, - ) - body_id = p.createMultiBody( - baseVisualShapeIndex=shape_id, - basePosition=(0, 0, 2.5), - baseOrientation=(0, 0, 0, 1), - physicsClientId=self.CLIENT, - # useFixedBase=1 - ) # p.loadURDF("duck_vhacd.urdf", # [-.5, -.5, .05], # p.getQuaternionFromEuler([0, 0, 0]),