Ejemplo n.º 1
0
 public RobotSetting()
 {
     Mechanic      = new MechanicalSetting();
     Driving       = new DrivingSetting();
     WallFollowing = new WallFollowingSetting();
     Sensor        = new SensorSetting();
     Stars         = new StarList();
 }
Ejemplo n.º 2
0
        public static StarList Load(string path)
        {
            XmlSerializer xs = new XmlSerializer(typeof(StarList));
            StreamReader  sr = new StreamReader(path);

            StarList result = xs.Deserialize(sr) as StarList;

            sr.Close();
            return(result);
        }
Ejemplo n.º 3
0
        public StarList GetLandmarks()
        {
            StarList landmarks = new StarList();

            foreach (PathNodeInfo pni in listNode)
            {
                if (pni.Type == PathNodeType.Absolute)
                {
                    if (pni.LandMarkID > 0)
                    {
                        landmarks.Add(new StarInfo(pni.Name, pni.LandMarkID));
                    }
                }
            }
            return(landmarks);
        }