Commit Graph

5 Commits

Author SHA1 Message Date
051e18f989 feat(move_base2): direction zone delivery and costmap readiness wait
- SensorGateway::pushStaticMap also dispatches to DIRECTIONAL_LAYER on
  the global costmap, before STATIC_LAYER: with a same-geometry map the
  directional layer goes PENDING before StaticLayer can report current,
  so a plan cannot pair the new map with the old zones.
- Static maps are replayed in arrival order instead of topic order, so a
  direction grid is never replayed before its static map.
- PlannerRunner checks every enabled global layer under the same lock as
  the snapshot. While a layer is not current it keeps the goal, reports
  waiting_for_costmap, logs the stale layers (throttled) and spends no
  planner_patience or watchdog budget. After costmap_ready_timeout [s]
  (default 10, 0 = legacy behaviour) the attempt fails as before. The
  key is added to config/runtime/move_base_common_params.yaml.
- Test fixture destroys the server before its fake ports (the control
  thread could call a destroyed port).

Full history: branch feature/direction-zone.
2026-11-04 13:24:22 +07:00
ea7f9659b8 feat(sensor_gateway): feed DepthCameraObstacleLayer through its own LayerType
robot_costmap_2d has LayerType::DEPTH_CAMERA_LAYER for
DepthCameraObstacleLayer. The gateway now pushes PointCloud2 to that type
as well as to VOXEL_LAYER, in both the local and the global costmap.
LaserScan, PointCloud and DepthCameraData stay VOXEL_LAYER only: the layer
marks and clears from the filtered camera cloud and does not use the depth
image.

Needs robot_costmap_2d main 64974d4 or later (the enum value).

Squashed from feature/depth-camera-layer-type (c280a0a..d3a9208).
2026-10-21 14:21:53 +07:00
350b1b7f8e feat(sensor_gateway): đẩy static map sang PreferredLayer và UnpreferredLayer
pushStaticMap trước đây chỉ dispatch tới STATIC_LAYER, nên PreferredLayer và
UnpreferredLayer — hai layer cũng ăn OccupancyGrid từ topic /map (namespace
riêng) — không bao giờ nhận được dữ liệu qua SensorGateway. Kết quả: khai layer
trong plugins: nhưng costmap vẫn trống ở vùng preferred/unpreferred.

Thêm dispatch cho cả hai layer trên global và local costmap. dispatchTo lọc theo
LayerType và bỏ qua khi không tìm thấy layer nào khớp, nên cấu hình không khai
hai layer này vẫn chạy y như cũ (no-op, không thêm chi phí đáng kể ngoài một
vòng lặp trên danh sách plugin).

LayerType::PREFERRED_LAYER và UNPREFERRED_LAYER đã có sẵn trong
robot_costmap_2d tại commit a63c084 (bản mà rb_ws đang trỏ tới), nên không sinh
phụ thuộc vào code chưa publish.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 13:47:17 +07:00
701d25f952 optimal & fix file cmake 2026-08-03 22:41:32 +07:00
4762a3032c first commit 2026-07-29 15:45:16 +07:00