use grpc port -1 by default in PyBullet. add grpcClient.py and grpcServer.py

This commit is contained in:
erwincoumans
2018-09-20 09:07:47 -07:00
parent 3de295ca41
commit 616192f80a
5 changed files with 61 additions and 3 deletions

View File

@@ -255,7 +255,11 @@ int main(int argc, char** argv)
int port = 6667;
parseArgs.GetCmdLineArgument("port", port);
std::string hostName = "localhost";
std::string hostNamePort = hostName + ":" + std::to_string(port);
std::string hostNamePort = hostName;
if (port>=0)
{
hostNamePort += ":" + std::to_string(port);
}
gVerboseNetworkMessagesServer = parseArgs.CheckCmdLineFlag("verbose");