public static AnvelControlService.Client CreateConnection(ClientConnectionToken connectionToken)
        {
            var transport = new TSocket(connectionToken.GetIpAddress(), connectionToken.GetPort());
            var client    = new AnvelControlService.Client(new TBinaryProtocol(transport));

            transport.Open();
            transport.TcpClient.NoDelay = true;
            return(client);
        }
 public void Initialize(ClientConnectionToken connectionToken, LidarEntry[] lidarDisplays, string vehicleName, Vector3 centerOffset, Vector3 rotationOffset)
 {
     this.lidarDisplays   = lidarDisplays;
     this.vehicleName     = vehicleName;
     this.anvelConnection = ConnectionFactory.CreateConnection(connectionToken);
     this.centerOffset    = centerOffset;
     this.rotationOffset  = rotationOffset;
     particles            = new ParticleSystem.Particle[0];
     lidarDisplay         = gameObject.GetComponent <ParticleSystem>();
     pollingThread        = new Thread(PollLidarPoints);
     pollingThread.Start();
 }
 public void Initialize(ClientConnectionToken connectionToken, string lidarSensorName, string vehicleName)
 {
     this.lidarDisplays   = new LidarEntry[] { new LidarEntry(lidarSensorName) };
     this.vehicleName     = vehicleName;
     this.anvelConnection = ConnectionFactory.CreateConnection(connectionToken);
     this.centerOffset    = Vector3.zero;
     this.rotationOffset  = Vector3.zero;
     particles            = new ParticleSystem.Particle[0];
     lidarDisplay         = gameObject.GetComponent <ParticleSystem>();
     pollingThread        = new Thread(PollLidarPoints);
     pollingThread.Start();
 }