Embed graphics server (shared memory) in PyBullet. Use pybullet.connect(pybullet.GRAPHICS_SERVER) to enable it.

TODO: enable for Mac OSX on mainloop, add tcp bridges from and to shared memory.
This commit is contained in:
Erwin Coumans
2020-03-19 14:18:35 -07:00
parent d3fdf434ed
commit c06859723b
7 changed files with 164 additions and 30 deletions

View File

@@ -30,6 +30,8 @@ void ExampleBrowserMemoryReleaseFunc(void* ptr);
#include "../SharedMemory/PhysicsServerExample.h"
#include "../SharedMemory/PhysicsServerExampleBullet2.h"
#include "../SharedMemory/GraphicsServerExample.h"
#include "../SharedMemory/PhysicsClientExample.h"
@@ -122,6 +124,7 @@ static ExampleEntryPhysicsServer gDefaultExamplesPhysicsServer[] =
PhysicsServerCreateFuncBullet2, PHYSICS_SERVER_ENABLE_COMMAND_LOGGING),
ExampleEntryPhysicsServer(1, "Physics Server (Replay Log)", "Create a physics server that replay a command log from disk.",
PhysicsServerCreateFuncBullet2, PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG),
ExampleEntryPhysicsServer(1, "Graphics Server", "Create a graphics server", GraphicsServerCreateFuncBullet),
};