public void ParticleTest() { FieldSize fieldSize = new FieldSize() { Xmax = 4, Xmin = 0, Ymax = 2, Ymin = 0, Zmax = 4, Zmin = 0 }; Assert.True(LocalizerFactory.Get(Filters.Particle, fieldSize) is ParticleFilterCoupler); }
/// <summary> /// Called when the game starts. /// </summary> public void Start() { Meta.MetaCameraMode.monocular = true; Meta.MarkerDetector.Instance.SetMarkerSize(this.markerSize); this.AddControllers(); FieldSize fieldSize = new FieldSize() { Xmax = 5, Xmin = 0, Ymax = 2, Ymin = 0, Zmax = 4, Zmin = 0 }; AbstractLocalizerCoupler coupler = LocalizerFactory.Get(this.usedFilter, fieldSize); this.InitControllers(coupler); this.InitMarker(); this.InitWorldBox(coupler.GetLocalizer(), fieldSize); Meta.MetaUI.Instance.enableGrid = false; }