pybullet: createBoxShape and other simple gemetries

Post Reply
oroulet
Posts: 1
Joined: Tue Nov 29, 2016 7:05 pm

pybullet: createBoxShape and other simple gemetries

Post by oroulet »

Hi,

I am currently testing pybullet and I want to create on the fly simple geometries like box and cylinders. Currently I create xml code on the fly, save it to disk and load it with loadURDF(). This is very hacky and is not efficient....

I see there is a C++ api with methods like createBoxShape() for that but the methods are not exported to pybullet. My first idea was to expose them in pybullet, but then I saw some comments in code saying that this functions will be removed. Is there a better way to create on the fly simple geometries with mass, and collisionbox with pybullet? Any other suggestion?

Thanks
Olivier

I found http://www.bulletphysics.org/Bullet/php ... =9&t=11378 from a user wondering about the same thing. So is the conclusion that the createBoxShape method will be removed?
benelot
Posts: 350
Joined: Sat Jul 04, 2015 10:33 am
Location: Bern, Switzerland
Contact:

Re: pybullet: createBoxShape and other simple gemetries

Post by benelot »

For the moment, everything you can do is loading objects via URDF. In a later version, it might be possible to build boxes and other geometry again from scratch, but for the moment, just URDF is supported.
Post Reply