Custom physics server in pybullet
Posted: Fri May 05, 2017 8:27 pm
I'm currently trying to use the pybullet API to interface with some code that was written using the bullet2 c++ API. As the code uses a GUI, I was looking into replicating the way the GUI server is instiatied when calling pybullet.connect(pybullet.GUI). I was looking into subclassing PhysicsClientSharedMemory, overriding its methods to calls to my backend, and replacing the call to btCreateInProcessExampleBrowser with a function that would instantiate instantiate my own browser (a subclass of the ExampleBrowserInterface in the bullet2 API).
I would add a new case in the pybullet_connectPhysicsServer, eCONNECT_CUSTOM_SERVER, to connect to my custom server.
I'm not sure if this is the way to go. What would be the appropriate way to do this?
Thanks!
-- Juan
I would add a new case in the pybullet_connectPhysicsServer, eCONNECT_CUSTOM_SERVER, to connect to my custom server.
I'm not sure if this is the way to go. What would be the appropriate way to do this?
Thanks!
-- Juan