bullet3/examples/SharedMemory/grpc
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
..
proto make GRPC work on Linux, 2018-09-04 16:56:34 -07:00
ConvertGRPCBullet.cpp make GRPC work on Linux, 2018-09-04 16:56:34 -07:00
ConvertGRPCBullet.h more GRPC work 2018-09-03 23:13:15 -07:00
main.cpp only add notifications if there is a plugin that needs them 2018-09-04 19:24:31 -07: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_client.py only add notifications if there is a plugin that needs them 2018-09-04 19:24:31 -07:00
pybullet_pb2_grpc.py Add preliminary GRPC server for PyBullet and BulletRobotics. 2018-08-29 21:12:13 -07:00
pybullet_pb2.py make GRPC work on Linux, 2018-09-04 16:56:34 -07:00
pybullet.grpc.pb.cpp 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.grpc.pb.h 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.pb.cpp 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.pb.h 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