pub struct SensorSpec {
pub sensor_id: String,
pub name: String,
pub mount_type: i32,
pub base_orientation: Option<SensorOrientation>,
pub field_of_view: Option<FieldOfView>,
pub modality: i32,
pub resolution_width: u32,
pub resolution_height: u32,
pub frame_rate_fps: f32,
pub gimbal_limits: Option<GimbalLimits>,
pub current_state: Option<GimbalState>,
pub updated_at: Option<Timestamp>,
}Expand description
Complete sensor specification combining mount, orientation, FOV, and state
Fields§
§sensor_id: StringUnique sensor identifier within the platform Format: lowercase alphanumeric with hyphens, e.g., “eo-main”, “ir-turret”
name: StringHuman-readable sensor name e.g., “Main Electro-Optical Camera”, “Forward-Looking IR”
mount_type: i32Mount type determining articulation capabilities
base_orientation: Option<SensorOrientation>Base orientation relative to platform body frame For fixed mounts: the permanent orientation For articulated mounts: the “home” or default position
field_of_view: Option<FieldOfView>Field of view at 1x zoom
modality: i32Sensor modality (EO, IR, radar, etc.)
resolution_width: u32Resolution (pixels)
resolution_height: u32§frame_rate_fps: f32Frame rate (frames per second)
gimbal_limits: Option<GimbalLimits>Articulation limits (only for PTZ/gimbal/turret mounts) Should be null/empty for FIXED mount type
current_state: Option<GimbalState>Current gimbal state (only for PTZ/gimbal/turret mounts) Should be null/empty for FIXED mount type
updated_at: Option<Timestamp>Timestamp of last state update
Implementations§
Source§impl SensorSpec
impl SensorSpec
Sourcepub fn mount_type(&self) -> SensorMountType
pub fn mount_type(&self) -> SensorMountType
Returns the enum value of mount_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_mount_type(&mut self, value: SensorMountType)
pub fn set_mount_type(&mut self, value: SensorMountType)
Sets mount_type to the provided enum value.
Sourcepub fn modality(&self) -> SensorModality
pub fn modality(&self) -> SensorModality
Returns the enum value of modality, or the default if the field is set to an invalid enum value.
Sourcepub fn set_modality(&mut self, value: SensorModality)
pub fn set_modality(&mut self, value: SensorModality)
Sets modality to the provided enum value.
Trait Implementations§
Source§impl Clone for SensorSpec
impl Clone for SensorSpec
Source§fn clone(&self) -> SensorSpec
fn clone(&self) -> SensorSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SensorSpec
impl Debug for SensorSpec
Source§impl Default for SensorSpec
impl Default for SensorSpec
Source§impl<'de> Deserialize<'de> for SensorSpec
impl<'de> Deserialize<'de> for SensorSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for SensorSpec
impl Message for SensorSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SensorSpec
impl PartialEq for SensorSpec
Source§fn eq(&self, other: &SensorSpec) -> bool
fn eq(&self, other: &SensorSpec) -> bool
self and other values to be equal, and is used by ==.