only add notifications if there is a plugin that needs them

call the 'reportNotifications' in GRPC server main
This commit is contained in:
Erwin Coumans
2018-09-04 19:24:31 -07:00
parent 18b782847d
commit 31b06f508a
3 changed files with 27 additions and 5 deletions

View File

@@ -135,6 +135,7 @@ private:
if (cmdPtr)
{
bool hasStatus = m_comProc->processCommand(*cmdPtr, serverStatus, &buffer[0], buffer.size());
m_comProc->reportNotifications();
double timeOutInSeconds = 10;
b3Clock clock;
double startTimeSeconds = clock.getTimeInSeconds();

View File

@@ -62,8 +62,9 @@ def run():
print("PyBullet client received: " , response)
for i in range (1000):
i=0
while(True):
i=i+1
print("submit StepSimulationCommand: ", i)
response = stub.SubmitCommand(pybullet_pb2.PyBulletCommand(stepSimulationCommand=pybullet_pb2.StepSimulationCommand()))
print("PyBullet client received: " , response.statusType)