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.
Depth cameras now go through their own costmap layer instead of the
frustum clearing that lived in ObstacleLayer and VoxelLayer.
- Add DepthCameraObstacleLayer. It stores marked points per costmap
column, clears stored points inside each camera frustum with a kd-tree
check against the new cloud, keeps points outside the view, groups
points with Euclidean clustering, and does not mark a 12 cm band at the
frustum faces.
- The layer follows the CostmapLayer contract: updateWithMax/Overwrite by
combination_method, reset(), clearArea() with the usual invert
semantics, footprint clearing, matchSize() and the layer mutex. So
ClearCostmapRecovery and costmap resets work on it.
- Add LayerType::DEPTH_CAMERA_LAYER, appended last so the existing values
keep their numbers. The host's SensorGateway must dispatch PointCloud2
and DepthCameraData to it (move_base2 feature/depth-camera-layer-type).
- Remove the frustum clearing code from Observation, ObservationBuffer,
ObstacleLayer, VoxelLayer and costmap_2d_robot.cpp.
- ObstacleLayer and VoxelLayer now reject a DepthCameraData source or
frustum_clearing_enabled: true at startup, with a message that points
to DepthCameraObstacleLayer.
- Link PCL into the plugins library only. Add 21 unit tests for the layer
(depth_camera_obstacle_layer_test).
Squashed from feature/depth-observed-volume (2ca0bcc..40dc70e).
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.