Create Shared Memory Server

Official Python bindings with a focus on reinforcement learning and robotics.
Post Reply
nickthorpie
Posts: 1
Joined: Fri Jan 14, 2022 4:19 pm

Create Shared Memory Server

Post 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.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: Create Shared Memory Server

Post 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
Post Reply