pub struct RrtStar<X, CS, OS, const N: usize>{ /* private fields */ }Expand description
RRT* implementation
Trait Implementations§
Source§impl<X, CS, OS, const N: usize> PathPlanner<X, CS, OS, N> for RrtStar<X, CS, OS, N>
impl<X, CS, OS, const N: usize> PathPlanner<X, CS, OS, N> for RrtStar<X, CS, OS, N>
type Params = RrtStarParams<X>
type State = RrtStarState<X, CS, OS, N>
Source§fn new(
init: SVector<X, N>,
goal: SVector<X, N>,
robot_specs: RobotSpecs<X>,
cspace: CS,
obs_space: OS,
params: Self::Params,
) -> Result<Self>
fn new( init: SVector<X, N>, goal: SVector<X, N>, robot_specs: RobotSpecs<X>, cspace: CS, obs_space: OS, params: Self::Params, ) -> Result<Self>
Define a new Path Planner with an initial set of obstacles in the space. Read more
Source§fn create_node(&mut self) -> &Self::State
fn create_node(&mut self) -> &Self::State
Samples nodes until one is added to the search graph. Read more
Source§fn sample_node(&mut self) -> Option<&Self::State>
fn sample_node(&mut self) -> Option<&Self::State>
Sample once to add a node to the graph Read more
Source§fn check_sensors(&mut self)
fn check_sensors(&mut self)
Checks the sensor on the robot for obstacles updates within robot_specs.sensor_range
Source§fn get_obs_space(&self) -> &OS
fn get_obs_space(&self) -> &OS
Returns reference to the currently used obstacle space
Source§fn get_obs_space_mut(&mut self) -> &mut OS
fn get_obs_space_mut(&mut self) -> &mut OS
Returns mutable reference to the currently used obstacle space Read more
Source§fn get_cspace(&self) -> &CS
fn get_cspace(&self) -> &CS
Returns reference to the currently used cspace
Source§fn get_cspace_mut(&mut self) -> &mut CS
fn get_cspace_mut(&mut self) -> &mut CS
Returns mutable reference to the currently used cspace Read more
Source§fn check_nodes(&mut self, use_obs_space: bool, use_cspace: bool)
fn check_nodes(&mut self, use_obs_space: bool, use_cspace: bool)
Checks the spaces specified that all nodes are still valid in that space Read more
Source§fn update_pose(
&mut self,
pose: SVector<X, N>,
nearest: bool,
) -> Option<MoveGoal<X, N>>
fn update_pose( &mut self, pose: SVector<X, N>, nearest: bool, ) -> Option<MoveGoal<X, N>>
Updates the pose of the system, possibly changing the move goal Read more
Source§fn get_tree(&self) -> Vec<FullTrajRefOwned<'_, X, CS::Traj, N>> ⓘ
fn get_tree(&self) -> Vec<FullTrajRefOwned<'_, X, CS::Traj, N>> ⓘ
Get the search tree as a list of edges
Source§fn get_current_path(&self) -> Option<FullTrajOwned<X, CS::Traj, N>>
fn get_current_path(&self) -> Option<FullTrajOwned<X, CS::Traj, N>>
Returns Some trajectory the next move goal if the global goal is reachable
Source§fn get_path_to_goal(&self) -> Option<Vec<SVector<X, N>>>
fn get_path_to_goal(&self) -> Option<Vec<SVector<X, N>>>
Returns Some path to the goal if the global goal is reachable
Source§fn get_last_pose(&self) -> &SVector<X, N>
fn get_last_pose(&self) -> &SVector<X, N>
Get the last known pose of the system
Source§fn get_state(&self) -> &Self::State
fn get_state(&self) -> &Self::State
Get a reference to the current serializable state information
Source§fn count(&self) -> usize
fn count(&self) -> usize
Returns the number of nodes in the graph plus the initial node (which is technically never added to the graph)
Source§fn get_cost_to_goal(&self) -> Option<X>
fn get_cost_to_goal(&self) -> Option<X>
Returns the total cost to reach the goal from the most recent pose given in update_pose
fn get_cost_to_move_goal(&self) -> Option<X>
Auto Trait Implementations§
impl<X, CS, OS, const N: usize> Freeze for RrtStar<X, CS, OS, N>
impl<X, CS, OS, const N: usize> RefUnwindSafe for RrtStar<X, CS, OS, N>where
CS: RefUnwindSafe,
OS: RefUnwindSafe,
X: RefUnwindSafe,
<CS as CSpace<X, N>>::Traj: RefUnwindSafe,
impl<X, CS, OS, const N: usize> Send for RrtStar<X, CS, OS, N>
impl<X, CS, OS, const N: usize> Sync for RrtStar<X, CS, OS, N>
impl<X, CS, OS, const N: usize> Unpin for RrtStar<X, CS, OS, N>
impl<X, CS, OS, const N: usize> UnwindSafe for RrtStar<X, CS, OS, N>
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.