protected void ConnectAndWait() { RosSocket = ConnectToRos(protocol, RosBridgeServerUrl, OnConnected, OnClosed, Serializer); if (!IsConnected.WaitOne(SecondsTimeout * 1000)) { Debug.LogWarning("Failed to connect to RosBridge at: " + RosBridgeServerUrl); } }
protected override void ConnectAndWait() { RosSocket = ConnectToRos(protocol, RosBridgeServerUrl, OnConnected, OnClosed, Serializer); bool connected = IsConnected.WaitOne(SecondsTimeout * 1000); if (!connected) { Debug.LogWarning("Failed to connect to RosBridge at: " + RosBridgeServerUrl, gameObject); RosSocket = null; enabled = false; } }