pub struct Obstacle {
pub obstacle_id: Option<String>,
pub obstacle_type: Option<ObstacleType>,
pub position: Option<Position2D>,
pub distance_m: Option<f64>,
pub bearing_deg: Option<f64>,
pub velocity_mps: Option<f64>,
pub heading_deg: Option<f64>,
pub on_path: Option<bool>,
pub ttc_sec: Option<f64>,
pub confidence: Option<f64>,
}Expand description
Detected obstacle.
Fields§
§obstacle_id: Option<String>Obstacle ID
obstacle_type: Option<ObstacleType>Obstacle type
position: Option<Position2D>Position relative to robot
distance_m: Option<f64>Distance to obstacle in meters
bearing_deg: Option<f64>Bearing to obstacle in degrees
velocity_mps: Option<f64>Obstacle velocity (for dynamic obstacles)
heading_deg: Option<f64>Obstacle heading (for dynamic obstacles)
on_path: Option<bool>Whether obstacle is on current path
ttc_sec: Option<f64>Time to collision if applicable (seconds)
confidence: Option<f64>Confidence score (0-1)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Obstacle
impl<'de> Deserialize<'de> for Obstacle
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
Auto Trait Implementations§
impl Freeze for Obstacle
impl RefUnwindSafe for Obstacle
impl Send for Obstacle
impl Sync for Obstacle
impl Unpin for Obstacle
impl UnwindSafe for Obstacle
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