Adaptive clearance sampling 2026-11-05
Adaptive clearance sampling spends more collision detection queries on portions of a trajectory that are difficult to certify, instead of accepting a path merely because a fixed set of samples is clear. Its guarantee comes from a bound on motion between samples. A configuration space path must satisfy the geometric constraints continuously.[ref]
Robotic Systems by Kris Hauser. Chapter 8, Stating the motion planning problem; Chapter 9, clearance
Represent the body by a nonempty compact set and the fixed obstacles by a nonempty closed set. Let be their nonnegative set distance, and suppose a known Lipschitz continuity bound gives . On an interval of duration with endpoint clearances , each time is at most from one endpoint. Hence an endpoint certificate for continuous collision clearance isIf this lower bound is strictly positive, the entire interval is clear. For a required clearance margin , require the bound to exceed instead. Otherwise query the midpoint and subdivide. A sharper certificate uses both endpoint cones; when and the distances satisfy the assumed bound, its minimum is . The simpler bound is sufficient for the example below.
For a translating and rotating rigid body, a valid speed estimate is , where is a bounding radius for rigid-body clearance, provided these are bounds over the whole interval and the obstacles stay fixed. The angular clearance bound for a rotating body proves the rotational contribution. A distance-estimation error bounded by can be accommodated by replacing each reported endpoint distance by its lower bound .
In an original point-motion example, with and passes the obstacle point . Its exact clearance is and suffices. Require . The initial endpoint certificate is positive but below this required margin, so more queries are needed. Recursive midpoint sampling certifies long intervals away from the obstacle and refines only near the closest approach. The stated midpoint rule uses 15 distance queries and certifies 14 intervals. The figure shows the exact function alongside the sampled certificate; the formula is known here only because the example is constructed.
Adaptive endpoint certificates for a trajectory passing 0.01 m from a point obstacle, with a required clearance of 0.005 m. Original exact geometry and recursive midpoint calculation.
Details. Unresolved intervals in adaptive collision checking must remain unresolved if a chosen depth or time budget is exhausted: failure to certify positive clearance does not establish a collision. Conversely, a query with exact zero set distance establishes contact or intersection. A sampled positive distance at or below violates the requested margin but does not establish contact. With exact queries, a valid finite and a trajectory whose clearance has a positive lower bound, subdivision eventually certifies every interval for ; a positive requested margin requires a positive surplus above that margin. Without positive clearance, finite termination is not promised.
Angular clearance bound for a rotating body 2026-11-05
A rigid body can hit an obstacle while its reference point stays fixed. An angular clearance bound for a rotating body controls the motion of every body point, allowing a collision detection calculation to reason about orientations between sampled poses.
Let a compact set lie within a bounding radius for rigid-body clearance of a fixed pivot. For a planar rotation matrix , a point moves by a chord of a circle:The same correspondence bounds the Hausdorff distance between the two body sets. For a fixed nonempty closed set of obstacles , let be the nonnegative set distance between and . The triangle inequality, applied to each point pair and then to their infima, givesThis is an explicit Lipschitz continuity bound. It concerns a fixed obstacle and the specified rigid geometry, rather than a universal constant for every robot.
To cover every intermediate orientation with excursion at most from a sampled pose, use , or the simpler . The cap matters because the sine is not increasing beyond . With translation displacement bounded by , the triangle inequality gives the sufficient clearance reduction .
For an original example, a body with rotating by at most moves any point by at most . An exact sampled clearance of leaves at least throughout that angular excursion when the pivot and obstacles stay fixed.
The whole excursion must be bounded, not just the difference between endpoint orientations modulo . A full revolution has identical endpoint orientations but can sweep through an obstacle. Likewise, a unit half-length rod rotating from to about its center clears an obstacle point at by at both endpoints but touches it midway. Adaptive clearance sampling therefore uses bounds on the actual interpolated motion. Configuration-space orientation and clearance are central to the continuous-path planning problem.[ref]
Robotic Systems by Kris Hauser. Chapter 9, rotational configuration-space obstacles and planning in SE(2)
Bounding radius for rigid-body clearance 2026-11-05
A bounding radius for rigid-body clearance bounds the distance of every point of a rigid body from the reference point used to describe its motion. It converts angular motion into a bound on point displacement, so collision detection can account for the whole body between sampled poses rather than only its reference point.
Let be a nonempty compact set in body coordinates and let be the chosen pivot in those coordinates. A valid radius satisfiesThe maximum exists by compactness and continuity of the Euclidean norm. A bound larger than is conservative; a smaller one does not cover the specified geometry. For a convex polytope with vertices , it is sufficient and exact to use : expressing a point as a convex combination and applying the triangle inequality proves that no interior point is farther away than the farthest vertex.
For an original rectangular-body example, take side lengths and . A pivot at the centre gives . A pivot at a corner instead gives . For a rotation about the respective fixed pivot, the angular clearance bound for a rotating body isThe smaller radius cannot be used for the corner-pivot motion unless the changed motion of the reference point is also included. A convenient geometric centre does not automatically remain stationary.
For a moving reference point with speed at most and angular speed at most , a point-speed bound is . This supplies a Lipschitz continuity constant for clearance against fixed obstacles. The role of body geometry and orientation in configuration space is developed in the primary planning text.[ref]
Robotic Systems by Kris Hauser. Chapter 9, Translating robots, C-obstacles for rotational motion and Motion planning in SE(2)
The modeled body must include attached tools and protrusions relevant to the query. Uncertainty in a rigid-body bounding radius can be accommodated with a conservative geometric enlargement. This radius controls motion around the declared reference point; it does not replace the separate required clearance margin for uncertain obstacle locations or tracking errors.
Bounding volume 2026-10-14
A bounding volume is a simple enclosing set for an object : every point of belongs to . Its purpose is to make a cheap rejection possible before examining the object itself. For example, an axis-aligned bounding box can enclose a triangle using just its smallest and largest coordinates.
The guarantee is one-sided. If and , thenThus an empty set intersection of the bounding volumes certifies an empty set intersection of the objects. An overlap of the bounding volumes is necessary for actual intersection, but does not prove it. This is a conservative enclosure test: rejection is conclusive, acceptance means further examination is needed.
Consider the filled triangles with vertices of a polygon and with vertices of a polygon . Their axis-aligned bounding boxes overlap in . Nevertheless, every point of satisfies , whereas every point of satisfies . The two triangles are disjoint. The shaded square in the bounding volume hierarchy illustration makes this false candidate visible.
For collision detection, a broad phase produces possible object pairs from bounding volume tests; a narrow phase examines the actual shapes, for example with a triangle-triangle intersection algorithm. Scott Le Grand's Chapter 32. Broad-Phase Collision Detection with CUDA explains this separation in its opening paragraphs. Whether touching counts as a collision must be specified by the application.
An enclosure must cover the entire object being queried. A box fitted to samples of a parametric curve only guarantees enclosure of the sampled points, unless a separate bound covers the whole parametric curve. For a Bézier curve, the convex hull of its control points provides such a bound on its defining parameter interval. In floating-point arithmetic, outward rounding can preserve certified coordinate bounds; an inward roundoff error can invalidate a rejection. Bounds must also be updated when objects move.
Bounding volume hierarchy 2026-10-14
A bounding volume hierarchy is a data structure arranged as a rooted tree: leaves store objects, and each internal node stores a bounding volume enclosing its children in a rooted tree. Consequently, every node encloses all objects in its subtree. A common choice is a binary tree of axis-aligned bounding boxes. The objects assigned to sibling subtrees can be different even when their bounding volumes overlap.[ref]
Here is an exact two-dimensional example. Use the triangles from bounding volume, together with having vertices of a polygon and having vertices of a polygon . Group under , and under . Their parent axis-aligned bounding boxes and the box at the root of a tree areThe diagram shows all seven nodes. Taking the coordinate-wise minimum and maximum of the two child boxes constructs each parent box; the resulting box contains the set union of the children, and can also contain empty space between them.
Four exact triangles, their enclosing boxes, and a seven-node bounding volume hierarchy arranged as a binary tree
. Details. A bounding volume hierarchy traversal starts at the root of a tree and discards a subtree when its bounding volume misses the query. Accepted internal nodes expose their children; accepted leaves supply candidates for actual shape tests. Box2D's official Collision: Dynamic Tree describes axis-aligned bounding box region queries that return overlapping leaf boxes. A query box that bounds a different query shape can produce additional false candidates.
For the closed query rectangleleft-first depth-first search tests the node boxes in order: root, , , , . The first four overlap ; does not, because its smallest -coordinate is . Pruning skips both and . Five box tests leave two broad phase candidates. The narrow phase rejects , since throughout , and accepts : the point belongs to both and . There are two detailed shape tests and one true hit.
An exact rectangle query prunes the right subtree and leaves two box candidates but only one triangle hit
. Details. For a query asking for all intersections, time complexity depends on the number of visited nodes and the cost of each candidate shape test. With fixed dimension and constant bookkeeping cost per node, the work iswhere counts candidate objects and is Big O notation. A balanced binary tree has small height of a binary tree, but a query can enter both children at every level. In this example a query containing visits all seven nodes and tests all four triangles. More generally, a full binary tree with single-object leaves has nodes, so such a query takes work for constant-cost shape tests even when its height of a binary tree is . Listing hits itself requires outputs. Small height alone gives no unconditional logarithmic query bound.
For collision detection between two bounding volume hierarchies, traverse pairs of nodes: reject disjoint pairs of bounding volumes, expand a nonleaf member of an accepted pair, and apply the narrow phase at accepted leaf pairs. A single collection's self-query must exclude pairing an object with itself and avoid duplicate unordered pairs. If every object overlaps every other object, reporting all pairs already requires results. Construction quality, empty space in boxes and the queries determine how much pruning is useful.[ref]
For a short correctness outline, an object is enclosed by its leaf box, and each child box is enclosed by its parent box. Repeated subset relations carry this property to every ancestor. A true query intersection therefore prevents rejection at every ancestor of the object's leaf. Updating leaf boxes after motion also requires restoring all affected ancestor bounds before querying.
A clearance certificate with bounded distance-query error proves separation over a continuous motion interval when sampled distances are known only within stated error bounds. A positive returned value from collision detection is not by itself a lower bound on the true geometric distance. Approximation, floating-point error and model error must be included if they affect the intended claim.
Let true set distance satisfy on . At endpoints, assume certified query errors . DefineProvided the query bounds are consistent with nonnegative distances, . The endpoint lower bounds propagate intoThis extends the endpoint certificate for continuous collision clearance. The primary planning model requires feasibility along the whole continuous path; checking endpoint poses alone is insufficient.[ref]
Robotic Systems by Kris Hauser. Chapter 8, Point-to-point path planning; Chapter 9, rotational configuration-space obstacles
The minimum of this envelope must be computed on the actual interval. Its general closed form, including unequal lower bounds, isFor and , the two sloping bounds meet inside the interval and the average expression dominates the other nonzero candidates. If , their intersection lies before the interval; the minimum is instead . The opposite inequality exchanges the endpoints. For , the formula reduces to because true clearance is constant.
The lower bounds themselves need not satisfy the consistency condition for exact endpoint distances. For example, , and permit a true clearance rising from to . Rejecting these lower bounds because their difference exceeds would wrongly treat them as exact observations. The general certificate gives ; using only the intersecting-cone expression would give the weaker .
A second original example takes reported distances and , errors and , and . Then and , so . The error-free formula would have claimed . For a required strict margin above , the uncertain queries do not certify the interval. Tightening both errors to raises the lower bound to and supplies the requested certificate.
Compatibility of bounded endpoint distance queries also uses the upper bounds. The intervals must obey , , and . A violated condition signals inconsistent assumptions. An upper distance bound at or below a required margin can establish a sampled margin violation; failure of a lower-bound certificate alone does not establish a collision.
A proposed checker records the query’s enclosure guarantee, units and geometric model, propagates the motion bound with the actual interpolation, and leaves uncertified intervals unresolved for further subdivision or stronger queries. A standard deviation is not a deterministic query enclosure. A certificate against a nominal obstacle model also needs a separate justified relation to the actual obstacle geometry before it can be interpreted physically.
Collision detection 2026-10-14
Collision detection determines whether geometric objects meet, under a specified convention for touching. A bounding volume test can reject a pair before a more detailed shape test.
Computer aided geometric design Created 2026-10-14 Updated 2026-11-05
Computer aided geometric design develops representations and algorithms for creating, evaluating and modifying curves, parametric surfaces and solid geometry. A representation must support useful questions: where is a point on the shape, what is its tangent vector, do two pieces join smoothly, and can two objects intersect? Bézier curves, splines and subdivision surfaces trade local control, smoothness and computational cost in different ways.
For a simple Bézier curve, choose control points , and . Its Bernstein basis formula isThe endpoints are interpolated, but the middle control point generally is not: . Its position influences the bulge, while Bézier derivative control polygons specify endpoint tangents. This makes shape changes predictable from a small set of geometric inputs.[ref]
Curves and Surfaces in Geometric Modeling: Theory and Algorithms by Jean Gallier. Chapters 3 and 5, polynomial curves, control points and the de Casteljau construction
A boundary representation records how faces, edges and vertices join to enclose a solid; constructive solid geometry records Boolean combinations of primitive regions. These topological and geometric data play different roles. For computational queries, a bounding volume supplies a conservative approximation, while an exact limit representation or a controlled error bound is needed for reliable collision detection and intersection of subdivision limit surfaces.
// Target: geometry-and-topology.bigb
Required clearance margin 2026-11-05
A required clearance margin is the minimum separation requested by a geometric motion specification. In adaptive clearance sampling, it is the threshold that a continuous-interval lower bound must exceed. Positive separation from an obstacle is enough to exclude contact in an exact model, but can still be less than the requested margin.
Let be the modeled nonnegative set distance between a rigid body and fixed obstacles. Using the strict convention of adaptive clearance sampling, an interval is accepted only when its guaranteed lower bound exceeds . A query with violates that requested separation without demonstrating contact. Choosing is part of the specification, not something determined uniquely by the collision detection algorithm.
Geometric uncertainty can be incorporated with explicit bounds. Suppose robot geometry, obstacle geometry and reference-point tracking error can each change the relevant sets by at most in Hausdorff distance. The triangle inequality then givesTo guarantee an actual separation greater than , a sufficient modeled threshold isThese are simultaneous deterministic bounds. No independence assumption is needed to add them conservatively. The configuration-space construction in the primary planning text similarly represents body size by enlarging forbidden regions.[ref]
For an original error budget, require and take geometric bounds of , and respectively. The modeled threshold becomes . Suppose the smaller reported endpoint distance is , the distance-query error is bounded by , the clearance Lipschitz continuity constant is , and the interval duration is . The simple interval certificate givesSubtracting the geometric budget leaves at least actual separation, exceeding the requested by in this model.
The query error was already subtracted from the interval bound and must not be subtracted again as an unrecorded duplicate allowance. Conversely, the motion term addresses unsampled motion; it does not automatically include obstacle-location error. An endpoint certificate for continuous collision clearance should state which effects are included in each quantity, while unresolved intervals in adaptive collision checking retain intervals whose lower bound is insufficient.
Robot motion planning 2026-11-05
Robot motion planning computes a robot's proposed motion from its modeled state, environment and task constraints. A geometric planning problem asks for a path through configuration space; a timed motion can additionally constrain velocity, acceleration, forces and actuator effort. Hauser's primary text explicitly distinguishes geometric path planning from the broader problem involving dynamics and execution.[ref]
Robotic Systems by Kris Hauser. Chapter 8, introductory definition, Stating the motion planning problem and Point-to-point path planning
Let be the configurations allowed by joint limits and collision detection. A geometric solution is a continuous curveEach point represents a complete robot configuration. A configuration-space obstacle is a forbidden set of configurations, not necessarily the same shape as the physical obstacle in the workspace.
An original planar example uses a point robot starting at and aiming for , in metres. A circular obstacle centered at with radius blocks the straight path. A two-segment detour through has lengthThe perpendicular distance from the obstacle center to either segment isso the detour clears the circular obstacle. Checking only the start and goal would instead miss the collision on the straight segment.
Now give the robot a circular footprint of radius , with translation as its only degree of freedom. The forbidden center positions form a disk of radius : the obstacle is expanded by the footprint through Minkowski addition. The same detour still passes, but its center-path margin above the expanded obstacle is only about . The geometric reduction depends on the stated footprint and permitted motion.
A path's corner does not supply a dynamically smooth trajectory. Traversing this sharp detour at nonzero constant speed would instantaneously change velocity at its midpoint. A physical controller must stop, smooth the corner or choose a different feasible trajectory, while continuing to respect the obstacle and actuator constraints. A larger path length can be an acceptable cost if it permits the required motion.
A proposed validation compares the continuous planned geometry, sampled collision tests and measured execution on a controlled obstacle course. Report the robot geometry, constraints, computational budget and observed clearance. Failure to find a path in a limited run does not alone prove none exists; success on a numerical path does not alone establish accurate execution. Hauser treats completeness and the distinction between paths and feedback policies separately.[ref]


