Create Half Cylinder in PyBullet

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
Aurora7979
Posts: 3
Joined: Fri Nov 25, 2022 9:21 pm

Create Half Cylinder in PyBullet

Post by Aurora7979 »

Hi,

I would like to ask if it is possible to use the PyBullet function createCollisionShape to create a half cylinder in PyBullet? If so, how should I do that?

Or, is there any other function in PyBullet that can help me create a half cylinder?

I am trying to connect a half cylinder body with my existing robot structure, but I do not know how to create that in PyBullet.

Thank you very much for the help!
otis
Posts: 6
Joined: Thu Feb 09, 2023 3:40 am

Re: Create Half Cylinder in PyBullet

Post by otis »

PyBullet’s `createCollisionShape` doesn’t directly support half cylinders, but you can create one by modeling it as a mesh in a tool like Blender,Block Blast exporting it as an `.obj` file, and loading it with `GEOM_MESH` in PyBullet.
Post Reply