public void Dispose()
 {
     if (VREPWrapper.simxPauseCommunication(clientID, 0) != 0)
     {
         throw new VREPException(simx_error.remote_error_flag, "Restarting communication failed");
     }
     // Console.WriteLine("--- Set Block closed ------");
 }
 public VREPSetBlock(int cID)
 {
     // Console.WriteLine("--- Opening Set Block -----");
     clientID = cID;
     if (VREPWrapper.simxPauseCommunication(cID, 1) != 0)
     {
         throw new VREPException(simx_error.remote_error_flag, "Pausing communication failed");
     }
 }
 public static void EndSetBlock(int clientID)
 {
     VREPWrapper.simxPauseCommunication(clientID, 0);
 }