pub struct ObstacleAlert {
pub obstacle_id: u64,
pub distance: f32,
pub direction: [f32; 3],
pub severity: AlertSeverity,
}Expand description
An alert generated when an obstacle is within a safety threshold.
Fields§
§obstacle_id: u64Identifier of the obstacle that triggered the alert.
distance: f32Distance to the obstacle in metres.
direction: [f32; 3]Unit direction vector pointing from the robot towards the obstacle.
severity: AlertSeveritySeverity of this alert.
Trait Implementations§
Source§impl Clone for ObstacleAlert
impl Clone for ObstacleAlert
Source§fn clone(&self) -> ObstacleAlert
fn clone(&self) -> ObstacleAlert
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObstacleAlert
impl Debug for ObstacleAlert
Source§impl<'de> Deserialize<'de> for ObstacleAlert
impl<'de> Deserialize<'de> for ObstacleAlert
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ObstacleAlert
impl PartialEq for ObstacleAlert
Source§impl Serialize for ObstacleAlert
impl Serialize for ObstacleAlert
impl StructuralPartialEq for ObstacleAlert
Auto Trait Implementations§
impl Freeze for ObstacleAlert
impl RefUnwindSafe for ObstacleAlert
impl Send for ObstacleAlert
impl Sync for ObstacleAlert
impl Unpin for ObstacleAlert
impl UnsafeUnpin for ObstacleAlert
impl UnwindSafe for ObstacleAlert
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more