←back to thread

Uncertain<T>

(nshipster.com)
444 points samtheprogram | 8 comments | | HN request time: 0.8s | source | bottom
Show context
AlotOfReading ◴[] No.45055844[source]
A small note, but GPS is only well-approximated by a circular uncertainty in specific conditions, usually open sky and long-time fixes. The full uncertainty model is much more complicated, hence the profusion of ways to measure error. This becomes important in many of the same situations that would lead you to stop treating the fix as a point location in the first place. To give a concrete example, autonomous vehicles will encounter situations where localization uncertainty is dominated by non-circular multipath effects.

If you go down this road far enough you eventually end up reinventing particle filters and similar.

replies(2): >>45056358 #>>45061195 #
1. mikepurvis ◴[] No.45056358[source]
Vehicle GPS is usually augmented by a lot of additional sensors and assumptions, notably the speedometer, compass, and knowledge the you'll be on one of the roads marked on its map. Not to mention a fast fix because you can assume you haven't changed position since you last powered on.
replies(6): >>45057070 #>>45060201 #>>45060449 #>>45062091 #>>45062247 #>>45062692 #
2. monocasa ◴[] No.45057070[source]
As well as a fast fix because you know what mobile cell or wifi network you're on.
3. astrange ◴[] No.45060201[source]
None of the inputs you mention work against multipath effects in cities, which means car GPS won't know which lane you're in and in a grid system may think you're on the next street over.

If you have an HD map you can solve for it using building shapes or by looking at the street with cameras. WiFi seems like it would help, but the locations of the WiFi terminals are themselves based on crowdsourced GPS.

4. o11c ◴[] No.45060449[source]
> Not to mention a fast fix because you can assume you haven't changed position since you last powered on.

... until you use a ferry.

5. jeffreygoesto ◴[] No.45062091[source]
Well. Some part of the 101 was moved a bunch of feet sideways after construction. Really hard to correct for, the GPS and the map localization were constantly fighting like an old couple... Had to re-map that stretch quickly...
6. blauditore ◴[] No.45062247[source]
> assume you haven't changed position since you last powered on

Sounds like a classic case of programmers ignoring corner cases: Towing, ferries, car trains, pushing the car because it broke down...

It's when you find messages in the log like "this should never happen".

replies(1): >>45062709 #
7. mauvehaus ◴[] No.45062692[source]
And yet, sometimes driving down a divided, limited access highway, Apple/Google/whatever maps will suddenly start giving directions from whatever parallel dirt road I happen to be driving next to. As though there's a situation where I left the highway at highway speed, crossing a ditch, crushing a fence, and possibly smashing through a guard rail, and am now traveling 65mph/100kph down a dirt road.
8. mauvehaus ◴[] No.45062709[source]
You can pretty clearly use it to correct errors up to a point though. If you have a 5km difference from when the GPS was turned off, you've probably hit a corner case. If you have a 25m difference, and it's converging on the last location as you pick up satellites, snapping to the prior location is almost certainly correct.