pub trait Obstacle<X, CS, const N: usize>: FromParams + Clonewhere
CS: CSpace<X, N>,{
// Required methods
fn trajectory_free<FT, S1, S2>(&self, t: &FT) -> bool
where FT: FullTrajectory<X, CS::Traj, S1, S2, N>,
S1: Storage<X, Const<N>>,
S2: Storage<X, Const<N>>;
fn is_free<S>(&self, x: &Vector<X, Const<N>, S>) -> bool
where S: Storage<X, Const<N>>;
}Expand description
An generic obstacle in an Rrt-like environment
Required Methods§
Sourcefn trajectory_free<FT, S1, S2>(&self, t: &FT) -> bool
fn trajectory_free<FT, S1, S2>(&self, t: &FT) -> bool
Checks that the obstacle does not intersect the given trajectory
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.