The plugin reported VOXEL_LAYER only because SensorGateway feeds sensor data to that type. It is its own layer, so LayerType gains DEPTH_CAMERA_LAYER (appended last: the values of the existing types do not move) and the plugin returns it. move_base2's SensorGateway delivers PointCloud2 and DepthCameraData to the new type in the matching commit; without that commit the layer receives nothing. matchSize() is overridden as well: CostmapLayer::matchSize() rebuilds the own grid with the default value, so the stored columns are re-marked under the layer mutex right away and the whole layer is queued for the next merge.
15 KiB
15 KiB