Commit Graph

11 Commits

Author SHA1 Message Date
40488b7632 feat(costmap_2d): direction zones and map readiness
- 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.
2026-11-04 13:24:16 +07:00
b18aeb39ab replaced printf -> robot::console 2026-01-10 11:38:19 +07:00
72b2f3c639 Hiep update 2025-12-30 10:24:18 +07:00
674fb07ad3 update 2025-12-24 14:19:29 +07:00
af43332b28 replace std::shared_ptr to boost::shared_ptr 2025-12-04 14:32:22 +07:00
11ff1baa79 fix core dumped err when loadplugin 2025-12-01 17:34:23 +07:00
49a72383c8 update file voxel_layer 2025-11-15 17:36:52 +07:00
bd98bf4e08 update folder plugins 2025-11-13 17:39:09 +07:00
c94de60a7b update file obstacle_layer and file test plugin 2025-11-12 17:38:38 +07:00
498b606e15 them file test static_layer 2025-11-07 17:44:42 +07:00
63dc18f3f0 1726_24102025 2025-10-24 17:26:44 +07:00