Exemplo n.º 1
0
        protected void ConnectAndWait()
        {
            RosSocket = ConnectToRos(protocol, RosBridgeServerUrl, OnConnected, OnClosed, Serializer);

            if (!IsConnected.WaitOne(SecondsTimeout * 1000))
            {
                Debug.LogWarning("Failed to connect to RosBridge at: " + RosBridgeServerUrl);
            }
        }
Exemplo n.º 2
0
    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;
        }
    }