I have a piece of python code using pyBullet for a robotics application. I am now looking to convert that code into C++ and switch out pyBullet for the C++ bullet3 interface. Im afraid in doing this i've fallen at the first hurdle and can't figure out how to load my urdf file into the world.
I've checked the manual, but all it has to say on the matter is:
I've looked at the cpp files for the multibody examples and the files in \examples\Importers\ImportURDFDemo, but I'm struggling to understand what I'm seeing. Is there any place with up to date guidance on how to do this? When i try searching online I just get guidance for pyBullet, which is significantly more straightforward. Given than in pyBullet this is done with a single line, I had assumed that this would be similarly straightforward in C++ but I am not finding this to be the case.Note that btMultiBody is introduced in the Bullet Physics SDK fairly recently, and is still work-in-progress. In this document, only the maximal coordinates based btRigidBody and btTypedConstraints is discussed. In a future revision, a chapter about btMultiBody will be added. For now, if you are interested in btMultiBody, please see the example browser and its source code in examples/MultiBody and examples/ImportURDF.
Any guidance on what I should do or where I could find further reading would be very gratefully received!