1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
use crate::{common::*, kind::Extension};
pub trait SensorKind {}
pub trait NonAnySensorKind
where
Self: SensorKind,
{
const EXTENSION: Extension;
}
#[derive(Debug)]
pub struct Any;
impl SensorKind for Any {}
#[derive(Debug)]
pub struct Tm2;
impl SensorKind for Tm2 {}
impl NonAnySensorKind for Tm2 {
const EXTENSION: Extension = Extension::Tm2Sensor;
}
#[derive(Debug)]
pub struct Pose;
impl SensorKind for Pose {}
impl NonAnySensorKind for Pose {
const EXTENSION: Extension = Extension::PoseSensor;
}
#[derive(Debug)]
pub struct Color;
impl SensorKind for Color {}
impl NonAnySensorKind for Color {
const EXTENSION: Extension = Extension::ColorSensor;
}
#[derive(Debug)]
pub struct Depth;
impl SensorKind for Depth {}
impl NonAnySensorKind for Depth {
const EXTENSION: Extension = Extension::DepthSensor;
}
#[derive(Debug)]
pub struct Motion;
impl SensorKind for Motion {}
impl NonAnySensorKind for Motion {
const EXTENSION: Extension = Extension::MotionSensor;
}
#[derive(Debug)]
pub struct FishEye;
impl SensorKind for FishEye {}
impl NonAnySensorKind for FishEye {
const EXTENSION: Extension = Extension::FishEyeSensor;
}
#[derive(Debug)]
pub struct Software;
impl SensorKind for Software {}
impl NonAnySensorKind for Software {
const EXTENSION: Extension = Extension::SoftwareSensor;
}
#[derive(Debug)]
pub struct L500Depth;
impl SensorKind for L500Depth {}
impl NonAnySensorKind for L500Depth {
const EXTENSION: Extension = Extension::L500DepthSensor;
}
#[derive(Debug)]
pub struct DepthStereo;
impl SensorKind for DepthStereo {}
impl NonAnySensorKind for DepthStereo {
const EXTENSION: Extension = Extension::DepthStereoSensor;
}