bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.
http://bulletphysics.org
Other
12.71k stars 2.88k forks source link

pybullet.error: GetBasePositionAndOrientation failed. #4651

Open wagh311 opened 3 months ago

wagh311 commented 3 months ago

I used pybullet to create a custom environment class named MultiTrackAviary, and I want to initialize this class, as follows: env = MultiTrackAviary()
env_evaluate = MultiTrackAviary()

However, the following error occurred: Traceback (most recent call last): File "F:\Code\gym-pybullet-drones\gym_pybullet_drones\examples\test2.py", line 6, in env_evaluate = MultiTrackAviary() File "F:\Code\gym-pybullet-drones\gym_pybullet_drones\envs\MultiTrackAviary.py", line 71, in init super().init(drone_model=drone_model, File "F:\Code\gym-pybullet-drones\gym_pybullet_drones\envs\BaseRLAviary.py", line 79, in init super().init(drone_model=drone_model, File "F:\Code\gym-pybullet-drones\gym_pybullet_drones\envs\BaseAviary.py", line 227, in init self._updateAndStoreKinematicInformation() File "F:\Code\gym-pybullet-drones\gym_pybullet_drones\envs\BaseAviary.py", line 573, in _updateAndStoreKinematicInformation self.targetpos[:], = p.getBasePositionAndOrientation(self.target_id, physicsClientId=self.CLIENT) pybullet.error: GetBasePositionAndOrientation failed.

Can someone help me?

deng-h commented 3 weeks ago

do you fix it?