public void Initialize(String ipaddress, IROSBridgeController parentwindow) { Console.WriteLine(current_velocity); try { ws = new WebSocket(ipaddress); subject = parentwindow; ws.OnMessage += UpdateOnReceive; Console.Out.WriteLine("Initialized RosBridgeLogic component"); connected = false; } catch (Exception se) { throw se; } }
public void setSubject(IROSBridgeController _subject) { this.subject = _subject; }