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

getAABB results in segmentation fault in a relatively complicated urdf #4565

Open
wSemis opened this issue Jan 8, 2024 · 0 comments
Open

Comments

@wSemis
Copy link

wSemis commented Jan 8, 2024

While developing a project, I found out that calling p.getAABB(bodyId) will cause a segmentation fault. The urdf I loaded can be found in this google drive link . Below is a reproducible code I elaborated.

OS: Ubuntu 20.04.6 LTS
Python: 3.8.10
Bullet Version: 3.2.6
Bullet API Version: 202010061

import pybullet as p

robot_urdf = f"robot/simplified_movo_leap.urdf"
p.connect(p.GUI)
robot = p.loadURDF(robot_urdf, useFixedBase=True)
print(f'robot: {robot}, numJoints: {p.getNumJoints(robot)}') # 0, 130

# This alone will cause seg fault - Part 1
aabb = p.getAABB(robot)
print(aabb)

# This alone also causes seg fault - Part 2
aabbs = [p.getAABB(robot, i) for i in range(p.getNumJoints(robot))]
print(aabbs)

# Dummy code to test functioning of bullet
for i in range(100):
    info = p.getJointInfo(robot, 0)
    print(info)
    
print('done')
p.disconnect()

Result commenting out Part 1 and Part 2:
All done.
image

Result commenting out Part 1 and only have Part 2:
Only robot id and number of joints are printed out.
image

Result commentring out Part 2 and only have Part 1:
aabb is printed but still segmentation fault. No joint info is printed
image

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

1 participant