pub struct NavigationDomain {
pub localization: Option<Localization>,
pub slam: Option<SlamStatus>,
pub path: Option<PathInfo>,
pub goal: Option<NavigationGoal>,
pub obstacles: Option<Vec<Obstacle>>,
pub obstacle_count: Option<u32>,
pub semantic_map: Option<SemanticMapInfo>,
pub costmap: Option<CostmapInfo>,
}Expand description
Navigation domain containing path planning and localization information.
Fields§
§localization: Option<Localization>Localization status
slam: Option<SlamStatus>SLAM status
path: Option<PathInfo>Current path information
goal: Option<NavigationGoal>Current navigation goal
obstacles: Option<Vec<Obstacle>>Detected obstacles
obstacle_count: Option<u32>Number of obstacles detected
semantic_map: Option<SemanticMapInfo>Semantic map information
costmap: Option<CostmapInfo>Costmap status
Implementations§
Sourcepub fn from_localization(quality: LocalizationQuality, confidence: f64) -> Self
pub fn from_localization(quality: LocalizationQuality, confidence: f64) -> Self
Create with localization quality.
Sourcepub fn with_goal(self, goal: NavigationGoal) -> Self
pub fn with_goal(self, goal: NavigationGoal) -> Self
Builder to add goal.
Sourcepub fn with_obstacle(self, obstacle: Obstacle) -> Self
pub fn with_obstacle(self, obstacle: Obstacle) -> Self
Builder to add obstacle.
Trait Implementations§
Source§fn clone(&self) -> NavigationDomain
fn clone(&self) -> NavigationDomain
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§fn default() -> NavigationDomain
fn default() -> NavigationDomain
Returns the “default value” for a type. Read more
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§
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