pub struct PathInfo {
pub state: Option<PathState>,
pub length_m: Option<f64>,
pub eta_sec: Option<f64>,
pub remaining_m: Option<f64>,
pub progress_pct: Option<f64>,
pub waypoint_count: Option<u32>,
pub current_waypoint: Option<u32>,
pub waypoints: Option<Vec<Position2D>>,
pub planner: Option<String>,
pub is_valid: Option<bool>,
pub replan_count: Option<u32>,
}Expand description
Current path information.
Fields§
§state: Option<PathState>Path state
length_m: Option<f64>Path length in meters
eta_sec: Option<f64>Estimated time to complete path (seconds)
remaining_m: Option<f64>Remaining distance in meters
progress_pct: Option<f64>Progress percentage (0-100)
waypoint_count: Option<u32>Number of waypoints in path
current_waypoint: Option<u32>Current waypoint index
waypoints: Option<Vec<Position2D>>Path waypoints (simplified, may be sampled)
planner: Option<String>Planner used (e.g., “navfn”, “teb”, “dwa”)
is_valid: Option<bool>Whether path is valid
replan_count: Option<u32>Replan count for current goal
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathInfo
impl<'de> Deserialize<'de> for PathInfo
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 PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnwindSafe for PathInfo
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