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
..
2018-07-01 14:42:32 -07:00
2018-09-05 17:58:14 -07:00
2018-07-01 14:42:32 -07:00
2018-09-05 17:58:14 -07:00
2018-07-27 15:48:24 +02:00
2018-07-27 15:48:24 +02:00
2018-09-05 17:58:14 -07:00
2018-09-05 17:58:14 -07:00
2018-06-05 11:41:41 +10:00
2018-09-03 23:13:15 -07:00
2018-08-26 16:14:36 -07:00
2018-06-06 16:10:20 -07:00
2018-06-05 11:41:41 +10:00
2018-01-08 12:25:56 -08:00
2018-07-27 15:48:24 +02:00
2017-10-19 14:00:53 -07:00
2017-10-19 14:00:53 -07:00
2016-03-10 14:36:46 -08:00
2016-03-10 14:36:46 -08:00
2017-05-30 19:54:55 -07:00
2015-11-11 12:44:26 -08:00
2018-07-03 17:45:19 +02:00
2018-09-05 17:58:14 -07:00
2018-09-03 23:13:15 -07:00
2017-12-28 12:37:07 -08:00
2016-06-03 19:03:56 -07:00
2018-09-04 09:10:57 -07:00
2018-09-04 09:10:57 -07:00
2018-09-05 17:58:14 -07:00
2018-09-04 09:10:57 -07:00
2017-01-10 14:57:16 -08:00
2016-11-04 13:15:10 -07:00
2017-01-10 14:57:16 -08:00
2016-11-04 13:15:10 -07:00
2017-09-20 23:18:18 -07:00
2017-09-20 23:18:18 -07:00
2018-07-03 17:45:19 +02:00
2018-07-03 17:45:19 +02:00
2017-09-21 16:40:19 -07:00
2017-09-21 16:40:19 -07:00
2018-06-27 23:43:42 -07:00
2018-09-03 23:13:15 -07:00
2017-09-21 16:40:19 -07:00
2017-09-21 16:40:19 -07:00
2018-05-02 14:32:43 -07:00
2018-09-03 23:13:15 -07:00
2018-09-05 17:58:14 -07:00
2018-09-03 23:13:15 -07:00
2018-07-03 17:45:19 +02:00
2017-09-21 16:40:19 -07:00
2017-09-21 16:40:19 -07:00
2018-07-03 17:45:19 +02:00
2018-07-03 17:45:19 +02:00
2017-01-15 22:26:11 -08:00
2015-11-23 08:00:42 -08:00
2015-11-22 20:50:32 -08:00
2017-05-28 17:05:18 -07:00
2018-09-05 17:58:14 -07:00
2018-09-05 17:58:14 -07:00
2018-07-25 14:47:34 +02:00
2017-05-30 19:54:55 -07:00
2017-05-30 19:54:55 -07:00
2017-05-30 19:54:55 -07:00
2018-09-05 17:58:14 -07:00
2018-07-25 14:47:34 +02:00
2017-09-13 09:56:39 -07:00
2015-07-14 16:23:01 -07:00
2018-09-05 17:58:14 -07:00
2016-09-11 08:40:58 +01:00
2015-08-24 15:26:29 -07:00
2017-02-22 09:33:30 -08:00
2017-05-28 17:05:18 -07:00
2018-09-03 23:13:15 -07:00
2018-08-26 16:14:36 -07:00
2015-08-07 00:13:26 -07:00
2018-06-05 19:44:33 -07:00
2018-06-05 19:44:33 -07:00
2015-07-23 11:51:25 -07:00
2018-09-03 23:13:15 -07:00
2018-07-04 14:25:48 +02:00
2018-05-16 12:10:34 -07:00
2015-07-14 15:30:17 -07:00