public RobotConnector() { _robotStatus = new RobotStatus(); DataCommunicator = new RTPDataCommunicator(); _processingThread = new Thread(new ThreadStart(this.UpdateThreaded)); //_processingThread.Start(); }
public void Dispose() { _IsDone = true; DisconnectRobot(); StopDataCommunicator(); if (_processingThread.IsAlive) { _processingThread.Join(); } _processingThread = null; RobotCommunicator = null; DataCommunicator = null; }