Files
costmap_2d/config
duongtd 3d552b49d0 feat(directional_layer): rewrite as a direction field provider
DirectionalLayer no longer derives from StaticLayer and never writes the
master grid. It receives 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 drops the snapshot and
returns the layer to PENDING until a grid for that map arrives.

direction_field.h holds the core API used by planners: grid validation,
DirectionField with bounds-checked codeAt(), a half-open-cell DDA
(traverseGridSegment), allowedDirectionMask() and checkSegment().
LayeredCostmap::getDirectionFieldSnapshot() exposes the snapshot through
the DirectionFieldProvider interface without adding data members.

Tests: direction_field_test (7) and directional_layer_test (5) pass.
2026-11-03 16:55:10 +07:00
..
2026-01-10 10:16:51 +07:00