Package lejos.robotics

Examples of lejos.robotics.RangeReadings


    particles.applyMove(event);
  }

  public Pose getPose() {
    if (readingsRequired) {
      RangeReadings rr = scanner.getRangeValues();
      readingsRequired = false;
      if (!rr.incomplete()) {
        particles.calculateWeights(rr, map);
        particles.resample(); // Cannot indicate robot is lost
      }
    }
    return particles.getEstimatedPose();
View Full Code Here


    particles.applyMove(event);
  }

  public Pose getPose() {
    if (readingsRequired) {
      RangeReadings rr = scanner.getRangeValues();
      readingsRequired = false;
      if (!rr.incomplete()) {
        particles.calculateWeights(rr, map);
        particles.resample(); // Cannot indicate robot is lost
      }
    }
    return particles.getEstimatedPose();
View Full Code Here

    this.projection = projection;
    this.numParticles = numParticles;
    this.map = map;
    particles = new MCLParticleSet(map, numParticles, 0);
    this.numReadings = numReadings;
    readings = new RangeReadings(numReadings);
  }
View Full Code Here

    dos.flush();

    // Retrieve the particles
    getParticles();
   
    readings = new RangeReadings(numReadings);
  }
View Full Code Here

TOP

Related Classes of lejos.robotics.RangeReadings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.