Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri May 05, 2017 8:27 pm 
Offline

Joined: Fri Feb 11, 2011 2:42 am
Posts: 1
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


Top
 Profile  
 
PostPosted: Sat May 13, 2017 1:13 am 
Offline
Site Admin
User avatar

Joined: Sun Jun 26, 2005 6:43 pm
Posts: 4055
Location: California, USA
What do you want to replace and what do you want to keep exactly? Replace the physics engine or the 3D graphics visualizer or everything?

If you want to write a custom physics engine, we can make the PhysicsServerCommandProcessor a virtual class, and allow subclassing (I was planning this).
Replacing the entire backend/server, you could start with TCP or UDP first, and go from there.

Thanks!
Erwin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group