protected override bool StartLoop() { _linkMeasures = ThreadManager.CreateThread(link => DoMeasure()); _linkMeasures.Name = "Mesure Hokuyo " + _id.ToString(); _linkMeasures.StartInfiniteLoop(new TimeSpan(0, 0, 0, 0, 100)); return(true); }
/// <summary> /// Retourne le nom usuel d'un Lidar /// </summary> /// <param name="capteur">Lidar à nommer</param> /// <returns>Nom du Lidar</returns> public static String GetName(LidarID lidar) { switch (lidar) { case LidarID.Ground: return("scan sol"); case LidarID.Avoid: return("évitement"); default: return(lidar.ToString()); } }