Open manas96 opened 2 years ago
I was able to hack something together by maintaining two copies of geometry objects. That is, if we have geometries {X,Y} on p1, {A,B} on p2, I maintain geometries {X,Y,A,B} on the GUI server and update their positions every frame. But happy to hear if there is a cleaner solution.
Hi @manas96, I am currently working on the same issue and I was wondering if you have found a solution for it since then? Or @erwincoumans could you help us ?
Hi @yogha001, I ended up building on top of the workaround I posted above.
Hi @manas96, so happy you replied. Well i'm not really working on excatly the same issue. Here is the issue I'm working on, just made a post: https://github.com/bulletphysics/bullet3/issues/4402
Hi, I'd like to spawn multiple instances of the physics server, send them some geometry, start them and then combine their output in a single GUI window. I'm trying to repurpose the existing 3D rendering infrastructure that pyBullet provides. Here's what I'm trying to do so far:
I'm currently looking into the saveState() and restoreState() methods to do this but this feels very hacky, so my question is is there a better way to do this? Note that the geometry on both "worker" servers might not be the same.
Edit Here's the code I'm trying to work with:
Which gives me the error:
I am able to restore p1's state in pgui if I uncomment
#setupServer(pgui)
. But I would like to be able to restore geometry that is previously unknown to pgui. Also, how do I debug pybullet.error's?