Files
duongtd f8705e1c49 fix(costmap): put every layer on one parameter flow
Each layer reads its default file under $PNKX_NAV_CORE_CONFIG_DIR/config,
then overrides a key from "<costmap>/<plugin>".
Costmap2DROBOT::copyParentParameters() copies the shared "<plugin>:"
block there first. The copy lists covered only part of what the layers
read, so a key set in the shared block was dropped without a word.
DepthCameraObstacleLayer bypassed the flow: it had no default file and
read the shared block itself, with the opposite precedence.

- copyParentParameters(): copy every key each layer reads.
  - StaticLayer: add enabled, first_map_only, subscribe_to_updates,
    use_maximum, trinary_costmap and base_frame_id.
  - Obstacle/VoxelLayer: add transform_tolerance,
    footprint_clearing_enabled and combination_method; VoxelLayer also
    gets enabled, max_obstacle_height and track_unknown_space.
  - InflationLayer: add enabled and inflate_unknown.
  - Add a DepthCameraObstacleLayer branch with its layer and per-source
    keys.
  - Drop copies that no layer reads (publish_voxel_map, layer-level
    obstacle_range and raytrace_range).
  - Keys are copied with the type the layer reads. A key that does not
    convert now throws: getParam() used to write 0, false or "" into the
    value, and that was copied as if configured.
- DepthCameraObstacleLayer::loadParameters(): read
  config/depth_camera_obstacle_layer_params.yaml, then "<costmap>/<plugin>",
  like ObstacleLayer. A missing file or block, or a value of the wrong
  type, throws. ParamReader is gone. With the shared block copied in,
  "<costmap>/<plugin>/<source>" exists, and the node_handle.cpp:265
  warning at start-up goes away.
- config/depth_camera_obstacle_layer_params.yaml: new, equal to the C++
  defaults. track_unknown_space is left out, so the layer still follows
  the costmap.
- depth_camera_obstacle_layer_test: point PNKX_NAV_CORE_CONFIG_DIR at the
  package. Add tests for a value of the wrong type and for a missing
  default file.
2026-10-22 10:25:53 +07:00
..
2025-12-30 10:24:18 +07:00
2026-01-12 15:48:43 +07:00