Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pybullet.error: GetBasePositionAndOrientation failed. #4651

Open
wagh311 opened this issue Aug 7, 2024 · 1 comment
Open

pybullet.error: GetBasePositionAndOrientation failed. #4651

wagh311 opened this issue Aug 7, 2024 · 1 comment

Comments

@wagh311
Copy link

wagh311 commented Aug 7, 2024

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.target_pos[:], _ = p.getBasePositionAndOrientation(self.target_id, physicsClientId=self.CLIENT)
pybullet.error: GetBasePositionAndOrientation failed.

Can someone help me?

@deng-h
Copy link

deng-h commented Nov 1, 2024

do you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants