bullet3/examples/pybullet
erwincoumans 0efc67841d allow pybullet to connect to GRPC server. (need to use flag --enable_grpc in premake build system)
add grpcPlugin, it can work in GUI, SHARED_MEMORY_SERVER, DIRECT and other modes.
example script to start server from pybullet:
import pybullet as p
p.connect(p.GUI)
#if statically linked plugin
id = p.loadPlugin("grpcPlugin")
#dynamics loading the plugin
#id = p.loadPlugin("E:/develop/bullet3/bin/pybullet_grpcPlugin_vs2010_x64_debug.dll", postFix="_grpcPlugin")

#start the GRPC server at hostname, port
if (id>=0):
	p.executePluginCommand(id, "localhost:1234")

Only in DIRECT mode, since there is no 'ping' you need to call to handle RCPs:
numRPC = 10
while (1):
	p.executePluginCommand(id, intArgs=[numRPC])
2018-09-05 17:58:14 -07:00
..
examples fix tab/space issue in Python file 2018-08-26 17:17:42 -07:00
gym PyBullet: added preliminary DART and MuJoCo backend files, MuJoCo can loadMJCF, stepSimulation and getBasePositionAndOrientation, DART is empty. 2018-07-01 14:42:32 -07:00
notebooks add HelloPyBullet notebook 2018-02-11 06:58:45 -08:00
numpy Improve PyBullet ports of Roboschool envs: fix reset (it kept adding stadium objects, causing slowdown), now reset uses saveState/restoreState and reset becomes a few orders of magnitude faster. 2018-01-15 12:48:32 -08:00
tensorflow expose pybullet non-contact erp, friction erp and frictionAnchor, b3PhysicsParamSetDefaultNonContactERP / b3PhysicsParamSetDefaultFrictionERP / b3ChangeDynamicsInfoSetFrictionAnchor 2017-06-07 09:37:28 -07:00
unittests Changes UserData to use global identifiers and makes linkIndex optional. 2018-07-03 17:45:19 +02:00
unity3d update autogenerated NativeMethods.cs from latest PhysicsClientC_Api.h 2018-01-31 09:07:31 -08:00
CMakeLists.txt prepare build system(s) for collisionFilterPlugin 2018-07-27 15:48:24 +02:00
premake4.lua allow pybullet to connect to GRPC server. (need to use flag --enable_grpc in premake build system) 2018-09-05 17:58:14 -07:00
pybullet.c allow pybullet to connect to GRPC server. (need to use flag --enable_grpc in premake build system) 2018-09-05 17:58:14 -07:00