pub trait ValidityChecker<Sp: StateSpace> {
// Required methods
fn check_state(&self, state: &Sp::State) -> Validity;
fn check_motion(
&self,
space: &Sp,
from: &Sp::State,
to: &Sp::State,
) -> Validity;
}Expand description
Checks states and motions of a StateSpace.
Required Methods§
Sourcefn check_state(&self, state: &Sp::State) -> Validity
fn check_state(&self, state: &Sp::State) -> Validity
Checks a single state.
Sourcefn check_motion(&self, space: &Sp, from: &Sp::State, to: &Sp::State) -> Validity
fn check_motion(&self, space: &Sp, from: &Sp::State, to: &Sp::State) -> Validity
Checks the motion from from to to, including to.
from is assumed to be valid already; planners only call this from tree or roadmap
nodes. Use discretized_motion when only a state check is available.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".