Page 1 of 1

Create Shared Memory Server

Posted: Fri Jan 14, 2022 5:16 pm
by nickthorpie
Hi All,
I have a working pyBullet simulation with the p.GUI method. I want to interface with this server on a different script, and it seems Shared Memory is the way to do this. I've seen examples online using ExampleBrowser > Experiments > PhysicsServer. I don't want to have to open ExampleBrowser and navigate the GUI to do this process, is there any way to run the PhysicsServer example through terminal/CMD, or in a python script? I've tried running the PhysicsServer.cpp on terminal with g++ but it doesn't seem like this is what it was built for.

Re: Create Shared Memory Server

Posted: Tue Mar 15, 2022 4:41 am
by Erwin Coumans
You can use p.GUI_SERVER and connect from one (1, not multiple) other client using p.SHARED_MEMORY.

You can also check out the runServer.py script as an example (python -m pybullet_utils.runServer)
https://github.com/bulletphysics/bullet ... nServer.py