Skip to main content

rust_robotics_mapping/experiments/point_cloud_sampling_quality/
full_bucket.rs

1use super::{PointSamplingAggregationVariant, VariantDescriptor};
2
3#[derive(Debug, Clone, Default)]
4pub struct FullBucketPointSamplingAggregation;
5
6impl FullBucketPointSamplingAggregation {
7    pub fn new() -> Self {
8        Self
9    }
10}
11
12impl PointSamplingAggregationVariant for FullBucketPointSamplingAggregation {
13    fn descriptor(&self) -> VariantDescriptor {
14        VariantDescriptor {
15            id: "full-bucket",
16            design_style: "exhaustive-reference",
17            source_path: concat!(
18                env!("CARGO_MANIFEST_DIR"),
19                "/src/experiments/point_cloud_sampling_quality/full_bucket.rs"
20            ),
21            knob_count: 0,
22            reports_dispersion: true,
23        }
24    }
25
26    fn selected_slots(&self, total_scenarios: usize) -> Vec<usize> {
27        (0..total_scenarios).collect()
28    }
29}