Changes
Page history
Cosmetic change
authored
Jun 01, 2015
by
René Nilsson
Hide whitespace changes
Inline
Side-by-side
Lesson10.markdown
View page @
ccc65c56
...
...
@@ -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.
...
...
...
...