- ReferenceGraph / ReferenceGraphWorker: Voronoi ridges and one-way lanes are
computed on a low-priority thread when the map changes (reference_graph_*
keys, off with rolling_window), with unit tests.
- Shared costmap keys can live in a root: map or flat at the top of the YAML;
costmap_common_root_test covers both layouts.
- Static and directional layers report map changes to the layered costmap.
- DirectionalLayer rewritten as a DirectionFieldProvider. It no longer
derives from StaticLayer and never writes the master grid. It takes an
OccupancyGrid of direction codes (0 = no constraint, 1..8 =
direction_index + 1) on direction_topic, validates it against the
master geometry and global frame, and publishes an immutable
DirectionField snapshot with a DISABLED / PENDING / READY state and a
generation counter. Every static map on map_topic returns the layer to
PENDING until a grid for that map arrives.
- direction_field.h is the core API for planners: grid validation,
bounds-checked codeAt(), a half-open-cell DDA (traverseGridSegment),
allowedDirectionMask() and checkSegment().
LayeredCostmap::getDirectionFieldSnapshot() exposes the snapshot
without adding data members.
- max_deviation_deg (default 90, valid 0 < x < 180). The field carries
the value so every planner uses the same rule; 90 keeps the previous
masks bit for bit.
- StaticLayer ignores an OccupancyGrid addressed to another layer's
topic instead of logging two unthrottled errors per push.
- StaticLayer and its subclasses report current only after updateCosts
has written the newest map (markMapWritten, also used by
CriticalLayer). Readiness flags are written under the master mutex;
invalid partial updates are rejected with a throttled error.
Full history: branch feature/direction-zone.
main had not moved since 11 July, while the depth-camera work continued on
dev_cam_intel for six weeks. The two branches did not diverge by accident: they
ended up holding two different clearing designs for the same layer.
main carried frustum clearing as VoxelLayer members - frustum_clearing_enabled_,
a pixel step and a min/max range - driven from costmap_2d_robot. dev_cam_intel
replaced that with a full-column clearing pass whose configuration lives per
observation, so the layer keeps no frustum state of its own.
This commit takes the dev_cam_intel tree whole. It is the line running on the
robot, the one rb_ws points at, and the one the NUC measurements were taken
against; the frustum design is superseded rather than merged, and stays in
history at 45c8227 if it is ever wanted back.
Squashed deliberately: the nineteen commits behind it are a working diary -
metrics that were added and removed, test toggles, an optimal-run series - and
none of that is worth carrying onto a branch other trees track.