Page 1 of 1

pybullet: createBoxShape and other simple gemetries

Posted: Wed Nov 30, 2016 9:48 am
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?

Re: pybullet: createBoxShape and other simple gemetries

Posted: Sat Dec 10, 2016 10:52 pm
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.