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.
Costmap2DROBOT::getParams() logged a layer that threw from initialize()
and returned. The constructor then finished normally with a half-built
costmap: no failed layer, no layers after it, no footprint and no update
thread. move_base2 reported READY, and the only trace was a message
blaming plugin registration.
- costmap_2d_robot.cpp: a failing layer, a malformed plugins: list and a
missing costmap_params.yaml now throw std::runtime_error with the
costmap and layer name, after releasing layered_costmap_ (the
destructor does not run when the constructor throws).
NavigationRuntime::buildCostmaps() already turns this into an
initialization error, so the host never reports READY.
- Static/Obstacle/Voxel/Inflation layers throw when their default file
cannot be opened, instead of running with no parameters.
- VoxelLayer: z_resolution can be overridden from the costmap config
like the other column keys; unknown_threshold is computed after the
final z_voxels, so overriding z_voxels alone keeps it right; z_voxels,
z_resolution, origin_z and the thresholds are range-checked; the
effective column is logged once at start-up.
- config/obstacle_layer_params.yaml: drop the per-source keys. The layer
reads them only under <plugin>/<source>/, so these were never used.
ObstacleLayer and VoxelLayer no longer carry any depth code, so the check
that rejected a DepthCameraData source or frustum_clearing_enabled goes too.
A DepthCameraData source still fails at startup through the generic
data_type check; frustum_clearing_enabled is now an unknown key.
The README and the LayerType comment now say the gateway feeds
DepthCameraObstacleLayer PointCloud2 only.
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.