Occupancy grid maps: a probability for every patch of floor
占据栅格地图
Learn how a robot with known poses turns range readings into a grid of occupancy probabilities, derive the additive log-odds update from Bayes' rule, read free, occupied and unknown correctly, and see on a synthetic room how independence assumptions and moving objects make a grid wrong or overconfident.
occupancy-mapsChop the world into cells and keep a belief for each
An occupancy grid map divides the space around a robot into small cells and stores, for each cell, the probability that something occupies it. The robot fills the grid from range sensors such as sonar or laser, knowing where it was for each reading. For example, suppose a laser beam travels 3 m before hitting a wall. That is evidence that the cells along the first 3 m are free and that the cell at 3 m is occupied.
Alberto Elfes, one of the method’s developers, describes the grid as a tessellation of space. The space is cut into cells that cover it without gaps, in two or three dimensions. Each cell holds a probabilistic estimate of its state. That state is binary: the cell is either occupied or empty, and the two probabilities add up to one. Grid and cell state
Elfes contrasted this with what he called the geometric paradigm. That approach extracts lines and surfaces from sensor data using prior models and rules of thumb. He argued that it produces sparse, brittle models and handles sensor uncertainty poorly. A grid instead stores a probability for every cell and updates it as evidence builds up. Motivation
Occupancy grids are widely used; Thrun lists localization, path planning, collision avoidance and finding people among their uses. They have been built from sonar, laser rangefinders and stereo cameras, mostly in 2-D but sometimes in 3-D. In that paper he called them arguably the most successful environment representation in mobile robotics to date. Uses and sensors
A rendered grid usually has three colours. In Grisetti and colleagues’ example figure, grey cells are unobserved, white cells are free to drive through, and black cells are occupied. Dense maps like this are usually built with range sensors. Rendering convention
The standard method assumes the robot’s poses are known, meaning its position and heading at each reading. Known poses
Building a map when the poses are also unknown is SLAM; using a finished map to find the pose is robot localization. The per-cell update below is a simple version of the Bayes filter in state estimation, applied to a quantity that does not change. Background: Bayes’ theorem and the log-odds transform used in logistic regression.
From one cell’s Bayes rule to an additive map update
This section explains the independence assumption that makes grids tractable, derives the log-odds update, and shows how to turn probabilities into decisions.
Why treat cells independently
A map of binary cells has possible configurations. Elfes notes that estimating a probability for every configuration is intractable. So each cell is estimated as an independent random variable. In his words this is a Markov random field of order 0: no cell’s state is linked to its neighbours. He adds that tasks such as recovering precise shapes would need higher-order models. Independence
Thrun spells out the assumptions behind the standard update. The first is the static world assumption: given the map, a new reading does not depend on earlier readings. The second is much stronger: each reading is treated as depending on only one cell at a time. Thrun calls the second assumption incorrect even in a static world, because a sensor beam or cone sweeps over many cells at once. Static world and per-cell assumption, eqs. 6–7
What an ideal sensor tells you
Elfes starts with a non-informative prior: before any reading, a cell is equally likely to be occupied or empty, so . Prior Now imagine an ideal range sensor that reports range with no noise. Along the beam, the occupancy profile it implies for a cell at distance is: Ideal sensor, eq. 6
In words: cells before the hit are certainly empty, the cell where the beam stopped is certainly occupied, and cells behind it stay at one half because the beam never reached them.
That last line matters. With a prior of one half, a value of 0.5 means “no information”, not “half full”. With a noisy sensor, Elfes shows that repeated readings make a cell’s profile approach this ideal shape. His figure places the sensor at , the target at , and starts every cell at 0.5. Convergence, Fig. 2
The sequential Bayes update
Elfes updates the grid one reading at a time using the sequential form of Bayes’ theorem. The current estimate of a cell serves as the prior for the next reading. Terms of the sensor model can be computed in advance and stored in a table, which makes updates fast. Sequential update, eq. 10 For one cell with two states, the update is:
In words: take the old probability that the cell is occupied and multiply it by how likely the latest reading would be if the cell were occupied. Then divide by the same quantity summed over both states , occupied and empty.
Log-odds: turning products into sums
Thrun’s paper presents the same update in a more convenient form. The odds of an event are , and the log-odds is their logarithm. For computational reasons, the log-odds is stored instead of the probability. Log-odds, eq. 3
In words: maps a probability between 0 and 1 to any real number, with giving ; the second formula converts back.
Thrun applies Bayes’ rule to each reading and divides the “occupied” version by the “free” version. Hard-to-compute terms cancel, and what remains is an addition. Derivation, eqs. 8–15 Writing for the occupancy of the cell at , for the reading at time and for the prior:
In words: start each cell at the prior log-odds; for each reading, add the log-odds that the reading alone suggests and subtract the prior’s log-odds so that the prior is not counted again.
Only two ingredients are needed. One is the prior . Thrun says it is commonly set between 0.2 and 0.5, depending on how cluttered the environment is expected to be; Elfes uses 1/2. The other is the inverse sensor model . It is called “inverse” because it reasons backwards, from a reading to the state of the cell that caused it. Two ingredients, eq. 17 A typical inverse model gives a moderately high value to the cell where the beam ended and a moderately low value to cells the beam passed through. With a prior of 0.5, the prior term is zero and the update is a running sum.
(The PDF of Thrun’s paper we read contains typographical slips in the printed inverse of the log-odds and in the initialization. The forms above are the correct ones: must give .)
Combining sensors and making decisions
Readings from different, independent sensors can update the same grid with the same kind of formula. Elfes adds that merging grids built separately reduces to what he calls the independent opinion pool. With Matthies, he combined a sonar array and a scanline stereo module in this way. Sensor integration General multi-sensor fusion is covered in sensor fusion.
To act on the grid, Elfes uses a maximum a posteriori decision rule. A cell is occupied if , empty if it is smaller, and unknown if they are equal. Instead of a single threshold, a band of values around one half can be labelled unknown. Many tasks can also use the probabilities directly. For example, a path planner can charge a cost for passing through risky cells. Decision rule, eq. 13
Mapping a synthetic room with known poses
This section builds a small log-odds grid and uses it to show a hand-checkable update, a full map, and two ways the method breaks. The program is an original synthetic example, numpy only, seeded with default_rng(16). The inverse model gives for the cell where a beam ends and 0.3 for each cell it passes through. The prior is 0.5, so the prior term is zero. Cells beyond the end of a beam are not updated. The room is 10 m × 10 m with walls on all sides, a 2 m × 2 m box and a short wall segment. The robot takes scans from 8 known poses; each scan has 72 beams, 5° apart, with a maximum range of 8 m and range noise of 0.05 m. All numbers are toy values.
import numpy as np
# Synthetic log-odds occupancy grid mapping with known poses (original toy, not real data).
RES = 0.25
N = 40
P_HIT, P_MISS = 0.7, 0.3
L_OCC = np.log(P_HIT / (1 - P_HIT))
L_FREE = np.log(P_MISS / (1 - P_MISS))
MAX_RANGE = 8.0
def prob(l):
return 1.0 - 1.0 / (1.0 + np.exp(l))
print("== 1. one cell, four readings (prior 0.5, so the prior term is zero) ==")
print(f"inverse model: p(occ | hit) = {P_HIT}, p(occ | pass-through) = {P_MISS}")
print(f"log-odds increments: hit {L_OCC:+.4f}, pass-through {L_FREE:+.4f}")
seq = ["hit", "hit", "miss", "hit"]
l = 0.0
odds_p = 0.5
for r in seq:
l += L_OCC if r == "hit" else L_FREE
like = P_HIT if r == "hit" else P_MISS
odds_p = like * odds_p / (like * odds_p + (1 - like) * (1 - odds_p))
print(f" after {r:4s}: log-odds {l:+.4f} p = {prob(l):.4f} (direct Bayes: {odds_p:.4f})")
truth = np.zeros((N, N), dtype=bool)
truth[0, :] = truth[-1, :] = truth[:, 0] = truth[:, -1] = True
truth[16:24, 24:32] = True
truth[28:36, 12:14] = True
def cell_of(x, y):
return int(np.floor(y / RES)), int(np.floor(x / RES))
def true_range(x, y, ang):
s = np.arange(0.0, MAX_RANGE, 0.01)
px, py = x + s * np.cos(ang), y + s * np.sin(ang)
rows = np.clip(np.floor(py / RES).astype(int), 0, N - 1)
cols = np.clip(np.floor(px / RES).astype(int), 0, N - 1)
hit = np.nonzero(truth[rows, cols])[0]
return s[hit[0]] if len(hit) else MAX_RANGE
def beam_cells(x, y, ang, r):
s = np.arange(0.0, r, RES / 5)
seen = []
for d in s:
c = cell_of(x + d * np.cos(ang), y + d * np.sin(ang))
if not seen or seen[-1] != c:
seen.append(c)
end = cell_of(x + r * np.cos(ang), y + r * np.sin(ang))
return [c for c in seen if c != end], end
rng = np.random.default_rng(16)
poses = [(2.0, 2.0), (2.0, 5.0), (2.0, 8.0), (5.0, 8.0), (5.0, 5.0), (5.0, 2.0), (8.0, 2.0), (8.5, 8.0)]
angles = np.deg2rad(np.arange(0, 360, 5))
L = np.zeros((N, N))
hits = np.zeros((N, N), dtype=int)
for x, y in poses:
assert not truth[cell_of(x, y)]
for a in angles:
r_true = true_range(x, y, a)
r = min(r_true + rng.normal(0.0, 0.05), MAX_RANGE)
free, end = beam_cells(x, y, a, r)
for c in free:
L[c] += L_FREE
if r < MAX_RANGE:
L[end] += L_OCC
hits[end] += 1
P = prob(L)
occ = P > 0.65
free = P < 0.35
unk = ~(occ | free)
print("\n== 2. map from 8 known poses x 72 beams (5 deg), range noise sigma 0.05 m ==")
print(f"grid {N} x {N} cells of {RES} m; truly occupied cells: {truth.sum()}, truly free: {(~truth).sum()}")
print(f"classified occupied (p > 0.65): {occ.sum()}, free (p < 0.35): {free.sum()}, unknown: {unk.sum()}")
print(f" truly occupied -> occupied {np.sum(occ & truth)}, free {np.sum(free & truth)}, unknown {np.sum(unk & truth)}")
print(f" truly free -> occupied {np.sum(occ & ~truth)}, free {np.sum(free & ~truth)}, unknown {np.sum(unk & ~truth)}")
obs = ~unk
acc = np.mean(occ[obs] == truth[obs])
print(f"accuracy on classified cells: {acc:.4f}")
inside_box = np.zeros((N, N), dtype=bool)
inside_box[17:23, 25:31] = True
print(f"interior cells of the box (never reached by a beam): {inside_box.sum()}, "
f"all unknown: {bool(np.all(unk[inside_box]))}")
row = 20
print(f"row {row} (y = {row * RES + RES / 2} m), p rounded, columns 18..33:")
print(" " + " ".join(f"{v:.2f}" for v in P[row, 18:34]))
print("\n== 3. the independence assumption: one beam repeated by a robot that does not move ==")
for n_scans in (1, 5, 20, 50):
lv = n_scans * L_OCC
print(f" {n_scans:2d} identical hits -> log-odds {lv:6.2f}, p = {prob(lv):.4f}, "
f"1 - p = {1.0 / (1.0 + np.exp(lv)):.1e}")
print("\n== 4. a dynamic object: occupied for 10 scans, then empty ==")
for clamp in (None, 2.0):
lv = 0.0
trace = []
for k in range(40):
lv += L_OCC if k < 10 else L_FREE
if clamp is not None:
lv = float(np.clip(lv, -clamp, clamp))
if k + 1 in (10, 15, 20, 30, 40):
trace.append(f"k={k + 1}: p={prob(lv):.3f}")
label = "no clamping" if clamp is None else f"clamp log-odds to +/-{clamp}"
print(f" {label}: " + ", ".join(trace))
The program prints:
== 1. one cell, four readings (prior 0.5, so the prior term is zero) ==
inverse model: p(occ | hit) = 0.7, p(occ | pass-through) = 0.3
log-odds increments: hit +0.8473, pass-through -0.8473
after hit : log-odds +0.8473 p = 0.7000 (direct Bayes: 0.7000)
after hit : log-odds +1.6946 p = 0.8448 (direct Bayes: 0.8448)
after miss: log-odds +0.8473 p = 0.7000 (direct Bayes: 0.7000)
after hit : log-odds +1.6946 p = 0.8448 (direct Bayes: 0.8448)
== 2. map from 8 known poses x 72 beams (5 deg), range noise sigma 0.05 m ==
grid 40 x 40 cells of 0.25 m; truly occupied cells: 236, truly free: 1364
classified occupied (p > 0.65): 179, free (p < 0.35): 1310, unknown: 111
truly occupied -> occupied 150, free 5, unknown 81
truly free -> occupied 29, free 1305, unknown 30
accuracy on classified cells: 0.9772
interior cells of the box (never reached by a beam): 36, all unknown: True
row 20 (y = 5.125 m), p rounded, columns 18..33:
0.00 0.00 0.00 0.00 0.00 0.03 0.93 0.50 0.50 0.50 0.50 0.50 0.50 0.50 0.30 0.16
== 3. the independence assumption: one beam repeated by a robot that does not move ==
1 identical hits -> log-odds 0.85, p = 0.7000, 1 - p = 3.0e-01
5 identical hits -> log-odds 4.24, p = 0.9857, 1 - p = 1.4e-02
20 identical hits -> log-odds 16.95, p = 1.0000, 1 - p = 4.4e-08
50 identical hits -> log-odds 42.36, p = 1.0000, 1 - p = 4.0e-19
== 4. a dynamic object: occupied for 10 scans, then empty ==
no clamping: k=10: p=1.000, k=15: p=0.986, k=20: p=0.500, k=30: p=0.000, k=40: p=0.000
clamp log-odds to +/-2.0: k=10: p=0.881, k=15: p=0.119, k=20: p=0.119, k=30: p=0.119, k=40: p=0.119
Part 1 follows one cell. Each hit adds and each pass-through adds . After hit, hit, miss, hit the log-odds is , , , , and the probability is 0.7000, 0.8448, 0.7000, 0.8448. The probability-form Bayes update gives exactly the same values. The log-odds form is the same calculation written as a sum.
Part 2 builds the map on a 40 × 40 grid of 0.25 m cells. The room has 236 truly occupied and 1364 truly free cells. With “occupied” meaning and “free” meaning , the map has 179 occupied, 1310 free and 111 unknown cells. Of the truly occupied cells, 150 are labelled occupied, 5 free and 81 unknown. Of the truly free cells, 29 are labelled occupied, 1305 free and 30 unknown. On the cells the map commits to, accuracy is 0.9772. All 36 cells inside the box are unknown, because no beam can reach them. Row 20 ( m) passes through the box. It reads 0.00 for the free floor, 0.03 just before the box, and 0.93 at the box’s near face. The next seven cells read 0.50: six interior cells, plus the box’s far face, which no beam hit in this row. Then come 0.30 and 0.16, free cells behind the box that were seen only a few times.
Part 3 tests the independence assumption. A robot that does not move fires the same beam again and again, and each identical hit is counted as new evidence. After 1, 5, 20 and 50 hits the log-odds is 0.85, 4.24, 16.95 and 42.36. The probability goes 0.7000, 0.9857, 1.0000, 1.0000, and the remaining doubt falls to 3.0e-01, 1.4e-02, 4.4e-08 and 4.0e-19. If those readings share an error, for example a reflection that fools the sensor every time, the map becomes absurdly confident in something false.
Part 4 adds a moving object. One cell is occupied for 10 scans and then empty. Without any limit, is 1.000 (rounded) at scan 10 and still 0.986 at scan 15. At scan 20 it is exactly 0.500, which looks “unknown” although the cell is now empty. Only by scan 30 does it read 0.000. With the log-odds clamped to , is 0.881 at scan 10 and 0.119 from scan 15 on. Clamping, meaning capping the log-odds at a fixed bound, is our own design choice for this toy; the sources we read do not discuss it. It lets the map forget stale evidence quickly, at the price of never becoming very confident.
Where grids mislead
This section collects the main ways an occupancy grid can be wrong, or right for the wrong reasons.
Cell independence creates conflicts. The inverse model ignores neighbouring cells. Thrun argues that this causes conflicts even with noise-free data. His example is an open door seen by wide sonar cones: the independent updates end up closing the door in the map. He notes that this affects any rule that updates cells independently, whether by multiplying or by adding. Conflicts, Figs. 1–2 His alternative uses forward models , which predict a reading from a whole map, and expectation maximization to search for the most likely map. In his simulated corridor, the standard method missed an open door seen once or three times, while his method recovered it; with 16 readings the standard map also showed the door. Forward models, Fig. 4
Repeated readings are not independent evidence. Part 3 shows what happens when one systematic error is counted many times. A grid can only be as honest as the assumption that each reading adds fresh information.
The world is assumed static. Moving people, doors and vehicles break the static-world assumption. Part 4 shows how slowly an unclamped grid forgets an object that has left, and that it passes through “unknown” on the way.
Unseen means unknown. Cells no beam reaches stay at the prior, like the box interior in Part 2. A planner must decide how to treat them. Treating them as free risks driving into hidden obstacles; treating them as occupied may leave no path at all.
Poses must be known. The whole method assumes known poses. To combine views from different places, they must be registered, that is, aligned by knowing the motion between them. Elfes handled position uncertainty with motion estimates carrying covariances and by matching grids against each other. Registration When poses are unknown, the problem becomes SLAM.
Resolution costs memory. Every cell is stored, whether it holds anything interesting or not. Finer cells capture more detail but multiply storage, especially in 3-D.
This example is a toy. It has one synthetic room, one seed and a hand-picked inverse model. Its accuracy of 0.9772 is not a benchmark for any real sensor.
Exercises
These exercises cover the meaning of 0.5, a hand calculation with a non-uniform prior, the failure of the independence assumption, and choosing a map type.
-
Why is a cell with not “half occupied”, and why should a planner treat unknown cells differently from free ones?
Answer: With a prior of 0.5, a value of 0.5 usually means there is no net evidence. Either the cell was never observed, as for cells beyond a reading in Elfes’s ideal-sensor profile, or the evidence for and against cancelled. Elfes’s decision rule labels as unknown and suggests an unknown band. In the example, the box interior stays at 0.50 because no beam reaches it, and the dynamic cell passes through exactly 0.500 at scan 20. A planner that treats 0.5 as free could drive into an unseen obstacle; one that treats it as occupied may find no path. The choice is a risk decision, not a measurement.
-
An inverse model gives and , and the prior is . A cell receives a pass-through, then a hit, then another hit. Compute the log-odds and the final probability.
Answer: The prior log-odds is . Each reading adds its own log-odds and subtracts . The pass-through adds . Each hit adds . The total is , so . Note that the pass-through counts as weak evidence for occupancy here, because 0.4 is above the prior of 0.3. The inverse model must be calibrated relative to the prior.
-
A robot parked in front of a glass wall takes 50 scans. Every beam passes through the glass and hits the wall behind it, so the map shows the glass cells as free with . Which assumptions are violated, and what does the example say about the confidence?
Answer: (i) The per-cell independence assumption, and with it the assumption that successive readings are independent. Fifty scans from the same pose share the same systematic error, the transparent surface, yet each adds the same log-odds. Part 3 shows that 50 identical updates drive the remaining doubt to 4.0e-19. (ii) The sensor model itself is wrong for glass: it assumes a beam passing through a cell means the cell is free. Many readings from one wrong model do not average out. The static-world assumption is a third one that can fail, for moving objects, as in Part 4.
-
Choose a map representation: (a) a warehouse robot with a 2-D lidar that must plan collision-free paths on a flat floor; (b) a camera-only robot that must recognize a few distinctive places to re-localize; (c) a drone flying between trees and under branches.
Answer: (a) A 2-D occupancy grid. It gives dense free, occupied and unknown information, suits range sensors, and works directly with grid planners such as A*, which Elfes’s system used. (b) A landmark map. Cadena et al. name landmark maps and occupancy grids as the two main 2-D paradigms. Landmarks store distinctive, recognizable features; a grid stores no appearance. (c) A 3-D volumetric map such as a voxel grid or an octree; Cadena et al. describe occupancy grids as probabilistic versions of such space-partitioning maps. A 2.5-D elevation map, which stores one height per ground cell, fails here because branches hang over open space. In every case, estimating the pose belongs to robot localization or SLAM.
History and further reading
This section traces the idea as the sources tell it and points to related representations. According to Elfes’s 1990 paper, occupancy grids were first developed for mapping with sonar. An earlier heuristic approach called certainty grids led to the probabilistic framework. It was tested in the Dolphin system, which used sonar for mapping and navigation. Origins Dolphin planned paths and avoided obstacles directly on the grid, using potential functions and A* search. Its cost combined the risk of passing through a cell with path length. Planning on the grid We cite Elfes through this 1990 conference paper only; his earlier journal articles, including a 1989 article in IEEE Computer, were not read.
Thrun’s paper presents the standard update in log-odds form and criticizes its independence assumption, as described above. The log-odds form does not appear in the Elfes paper we read, which uses the probability form. We read it from the author’s PDF, which carries no venue line; a search listing gives the journal Autonomous Robots and the year 2003, neither of which we verified. Forward sensor models
Cadena et al. place grids among other map types. In 2-D, landmark maps and occupancy grids are the two main paradigms. In 3-D, occupancy grids can be seen as probabilistic versions of space-partitioning maps built from voxels or octrees. Elevation maps, called 2.5-D, are used in 3-D environments without overhanging obstacles. They also mention an IEEE standard for 2-D maps, which we did not read. Map representations
For related topics, SLAM explains how grids are built when poses are unknown, and robot localization explains how a finished grid is used to find the robot. Newer scene representations such as neural radiance fields and Gaussian splatting model appearance as well as geometry and are not covered here. The overview of robot learning problems maps the wider robotics cluster that mapping belongs to.
Make a prediction, then check
Inverse sensor model: p(occ | z) = 0.7 for a hit and 0.3 for a pass-through; prior 0.5. A cell receives hit, hit, pass-through, hit. What is its occupancy probability?
Learning objectives
- State the definition of an occupancy grid and the cell-independence assumption, derive the additive log-odds update (including the prior term) from Bayes' rule, and compute a cell's probability by hand after several hits and pass-throughs.
- Distinguish 'unknown' from 'free', explain how the independence assumption, repeated correlated readings, dynamic objects and unobserved regions make grid maps wrong or overconfident, and use this to choose a map representation for a given task.
Prerequisites & connections
Explore related knowledge →References
- Occupancy Grids: A Stochastic Spatial Representation for Active Robot Perception — scoped
Alberto Elfes · 1990 - Learning Occupancy Grids With Forward Sensor Models — scoped
Sebastian Thrun · 2003 - Past, Present, and Future of Simultaneous Localization and Mapping: Towards the Robust-Perception Age — scoped
Cesar Cadena; Luca Carlone; Henry Carrillo; Yasir Latif; Davide Scaramuzza; José Neira; Ian Reid; John J. Leonard · 2016 - A Tutorial on Graph-Based SLAM — scoped
Giorgio Grisetti; Rainer Kümmerle; Cyrill Stachniss; Wolfram Burgard · 2010
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-03 · Independent AI check (Claude subagent, not the author; not a human or expert review). Gemini-app style edits logged in gemini-edits-016a.json were applied to the opening sections before this check; research was done by a separate research subagent (facts.md) and the prose by a writer subagent. I ran example.py with the pinned interpreter (numpy 1.26.4) and diffed it against example.stdout.txt (identical), confirmed the python block in en.mdx and zh.mdx is byte-identical to example.py and the printed-output block matches the stdout, and matched every quoted number. I checked the row-20 reading against the program's truth array: the box is a solid block truth[16:24, 24:32], so column 24 is the near face (0.93), columns 25-30 are the six interior cells and column 31 is the far face, all at 0.50 (no beam updated them), and columns 32-33 are truly free (0.30 = one pass-through, 0.16 = two). I re-derived the log-odds update, the hit/hit/miss/hit values and the non-uniform-prior exercise (l3 = 2.9837, p = 0.9518). I downloaded and re-read with pdftotext Elfes's UAI 1990 paper (arXiv 1304.1098: geometric paradigm, Markov random field of order 0, UNKNOWN band, independent opinion pool, Certainty Grids, Dolphin, 'we implemented'), Thrun's author PDF (introduction uses list incl. people finding, 'arguably the most successful', prior 0.2-0.5, the 16-measurement door run; the PDF carries no venue and no year) and the Cadena and Grisetti passages on map representations and the grid colour convention. I did not read Elfes's 1987/1989 articles, Thrun's EM derivation (pp. 10-19) or the IEEE map standard. I compared zh and en section by section and checked data.json IDs against src/data/catalogue.txt and the quiz answer. The Gemini edits changed wording only; none changed a fact, hedge or attribution, and none needed reverting. Elfes is cited only through UAI 1990; log-odds is attributed to Thrun; clamping is labelled as our own design choice.
- Program output under the pinned interpreter matches example.stdout.txt, both code blocks are byte-identical to example.py, and every quoted number matches the output.
- Checked row 20 against the program's truth array: column 24 is the near face, columns 25-30 the six interior cells and column 31 the unhit far face, all at 0.50; columns 32-33 are truly free.
- Re-checked Elfes 1990 and Thrun's PDF: order-0 Markov random field, decision rule and unknown band, independent opinion pool, Dolphin and A*; the log-odds form comes from Thrun only, prior 0.2-0.5, the door experiment.
- The log-odds derivation, the single-cell sequence and the non-uniform-prior exercise (2.9837, 0.9518) are correct; clamping is labelled as our own design choice.
- Gemini style edits changed wording only, not facts, hedges or attributions; zh and en still agree.
Source locations checked:
- Occupancy Grids: A Stochastic Spatial Representation for Active Robot Perception — scoped · pdftotext of arXiv 1304.1098 PDF (11 pages = proceedings pp. 136–146). p. 136: abstract, §1 (Geometric Paradigm critique). p. 137: §2.1 grid definition, random field, Inference Grids; §2.2 binary cell state, sensor model p(r|z). p. 138: 2^{m²} configurations, independence / zero-order MRF, eqs. 1–6 (Bayes per cell, Kolmogoroff theorem, max-entropy prior 1/2, ideal-sensor profile). p. 139: Gaussian sensor eqs. 7–9, Fig. 2 convergence, D(z)G(r,z,E(z)) calibrated model. p. 140: §2.3 sequential Bayes eq. 10, §2.4 sensor integration / independent opinion pool, §2.5 pre-compiled maps. pp. 140–141: §2.6 MAP decision eq. 13, unknown band. p. 141: §3.1 sonar mapping, Certainty Grids, Dolphin, Sensor/Robot View, Global Map. p. 142: §3.2 sonar + scanline stereo with Matthies, §4.1 A* and potential functions, eq. 14. p. 143: §4.2–4.4 openings (position uncertainty, motion solving by grid correlation). NOT read: pp. 144–146.
- Learning Occupancy Grids With Forward Sensor Models — scoped · pdftotext of thrun.occ-journal.pdf (28 pages). pp. 1–3: abstract, §1 (uses, sensors, 'arguably the most successful', independence conflicts, open-door Figs. 1–2). p. 4: forward vs inverse models, §2 start, eq. 1. p. 5: eqs. 2–7 (log-odds, static world, per-cell independence called incorrect). p. 6: eqs. 8–15. p. 7: Table 1, eq. 16, prior commonly 0.2–0.5. p. 8: inverse sensor model eq. 17 and its fallacy; §3, §3.1 start. p. 9: forward model description. pp. 20–22: Figs. 4–6 and text (n = 1, 3, 16 open-door readings; B21 robot with 24 sonars; 10 cm grids). Noted typographical slips in eq. 4 and eq. 15. NOT read: pp. 10–19, 23–28.
- Past, Present, and Future of Simultaneous Localization and Mapping: Towards the Robust-Perception Age — scoped · For this topic: arXiv v4 printed pp. 8–10, §V opening (metric map definition; 2-D landmark vs occupancy grid; IEEE RAS 2-D map standard mention) and the 'Boundary and spatial-partitioning dense representations' paragraph (voxels, octrees, occupancy grids as probabilistic spatial partitioning, 2.5-D elevation maps). Other sections read for the slam topic. NOT read: rest of §V (feature vs direct, high-level representations), §VI.
- A Tutorial on Graph-Based SLAM — scoped · For this topic: preprint p. 2 (map representations: landmarks vs dense representations such as occupancy grids, dense maps usually used with range sensors) and p. 3 Fig. 2(c) caption (occupancy grid of a hospital: grey unobserved, white traversable, black occupied). Other pages read for the slam topic. NOT read: pp. 8–11.
Related topics