An empty-looking area on a robot map can mean that observations support free space. It can also mean no occupancy information has been recorded there. Those are different evidential states, even if a display gives them similar colors.
An occupancy representation needs a way to preserve that distinction. It also needs a rule for turning accumulated evidence into whatever labels a consumer uses. A probability, an unknown-state flag, and a navigation decision describe different stages of the interpretation.
OctoMap's introduction explicitly distinguishes occupied, free, and unknown regions. Its 1.9.7 API documents missing-node queries and relative log-odds updates. These mechanisms motivate the question; the original sensor model and arithmetic below do not reproduce OctoMap defaults or describe a mapping run.
A missing record is not a negative observation
Consider a hypothetical map containing a location behind an opaque object. Suppose no measurement update has been assigned to that location. The record is unknown in the declared representation.
Now consider another location through which a modeled sensor observation supplies evidence against occupancy. Its record has been updated. Calling both locations free would discard the distinction between lack of evidence and evidence generated by a measurement model.
This is an evidence-accounting statement. It does not claim that every range sensor interprets every absent return as free space. Whether a record receives an update depends on the actual observation, sensor model, geometry, and processing rules.
In OctoMap's cited query interface, search can return a null pointer for unknown space. An application must interpret that result before asking about an existing node's stored occupancy. A missing node is not simply a node whose probability happens to be low.
Declare a small binary sensor model
For independent arithmetic, invent one cell whose physical state is either occupied, O, or free, F. Start with prior probabilities P(O) = P(F) = 0.5.
An imagined observation has two possible outcomes, hit and miss. Assume P(hit given O) = 2/3 and P(hit given F) = 1/3. The complementary miss probabilities are therefore 1/3 and 2/3.
For this toy model, treat successive observations as conditionally independent given the fixed cell state. There are no pose errors, changes in the cell, occlusion mistakes, or correlated measurements. None of these assumptions is a sensor specification or a claim of calibrated probabilities in a robot.
A hit multiplies the occupancy odds by two, because its likelihood ratio is (2/3)/(1/3). A miss multiplies the odds by one-half. Odds means P(O)/P(F), and probability is odds divided by one plus odds.
Updates are easier to see in odds
The prior odds are one. After one hit they become two, giving occupancy probability 2/3. After two hits they become four, giving probability 4/5, or 0.8.
After two hits followed by one miss, odds become two and probability returns to 2/3. Two hits followed by two misses produce odds one and probability 0.5. Two hits followed by three misses produce odds one-half and probability 1/3.
Under this declared conditionally independent model without clipping, only the counts of the two observation types determine the final odds. Their order does not change the product. That statement would not automatically carry over to a changing scene or a model with time-dependent observations.
The result after two hits and two misses has the same numerical probability as the prior. Its history is nevertheless different from a never-observed location. A representation that preserves whether information was integrated can retain that difference even when the probability values coincide.
Log odds express the multiplication as addition
Define l = ln[P(O)/(1 − P(O))]. The prior l is zero. Each toy hit adds ln(2), approximately 0.693147, and each toy miss subtracts that same amount.
The inverse conversion is P(O) = 1/[1 + exp(−l)]. After two hits and one miss, l = ln(2) and the probability is again 2/3.
The cited OctoMap API exposes an operation that adds a relative log-odds value to a voxel. This is a representation mechanism. The validity of an increment as physical evidence still depends on the sensor and statistical assumptions that produced it.
Replaying one observation many times does not create many independent measurements. In the toy calculation, treating five copies of one hit as five independent hits would produce odds 32 and probability 32/33, about 0.969697. The arithmetic is consistent with five independent hits; copying a single record does not establish that premise.
Clamping changes how history is retained
For a separate hypothetical implementation rule, clamp odds after every update to the interval from 1/4 to 4. Equivalently, clamp l between −ln(4) and +ln(4). These are invented bounds, not OctoMap parameter recommendations.
Process three hits and then one miss. The odds move from 1 to 2 to 4, remain clamped at 4 after the third hit, and then fall to 2 after the miss. Final probability is 2/3.
Process the same counts in the order hit, hit, miss, hit. Odds move from 1 to 2 to 4 to 2 to 4. Final probability is 0.8.
Order now matters because the first sequence discarded part of the accumulated positive evidence at the clamp. Clamping can bound stored confidence, but it is not identical to retaining the complete likelihood product. A report should not describe the two calculations as the same posterior computation.
Classification is another rule
Suppose an invented consumer labels an observed cell occupied when probability is above 0.7, free when below 0.3, and unresolved otherwise. Under that rule, one hit remains unresolved and two hits cross the occupied threshold.
A different threshold rule can classify the same stored number differently. The chosen labels do not add observations, and an unknown location still needs an explicit handling rule. These sample thresholds are explanatory, not operating criteria.
The API's castRay result illustrates a related boundary: false can mean encountering unknown space or reaching a limit, rather than proving the entire ray free. A Boolean result needs its documented meaning and endpoint context.
Occupancy evidence does not establish every property of a route
Even a well-defined occupancy estimate does not describe floor support, traction, overhead clearance for an entire robot, or whether the scene has changed. A free voxel in one representation does not automatically approve physical travel through a region.
The useful map account preserves what was observed, what remains unknown, how probabilities were updated, and how consumers interpret them. Keeping those layers distinguishable makes a sparse map more informative than a display that silently turns every blank area into permission.
Sources checked October 23, 2026: OctoMap 1.9.7 introduction: https://octomap.github.io/octomap/doc/
OctoMap 1.9.7 OccupancyOcTreeBase API: https://octomap.github.io/octomap/doc/classoctomap_1_1OccupancyOcTreeBase.html
Illustration note: The site-library concept image shows a robot above metal parts with a blue sensing pattern. It does not show the invented occupancy cells, a measured probability map, or verified traversability.