... | ... | @@ -134,8 +134,10 @@ In the snippet below the corrected implementation is shown. Instead of using the |
|
|
|
|
|
```java
|
|
|
pose.setLocation(new Point(
|
|
|
(float) (pose.getX() + xm + (distanceNoiseFactor * move.getDistanceTraveled() * rand.nextGaussian())),
|
|
|
(float) (pose.getY() + ym + (distanceNoiseFactor * move.getDistanceTraveled() * rand.nextGaussian()))));
|
|
|
(float) (pose.getX() + xm + (distanceNoiseFactor * move.getDistanceTraveled()
|
|
|
* rand.nextGaussian())),
|
|
|
(float) (pose.getY() + ym + (distanceNoiseFactor * move.getDistanceTraveled()
|
|
|
* rand.nextGaussian()))));
|
|
|
```
|
|
|
|
|
|
The particle filter was tested by making the car follow the track as shown in the picture below. By using the poster with distances it is possible to see how accurate the car is.
|
... | ... | |