Skip to main content

CorridorLoopRun

Struct CorridorLoopRun 

Source
pub struct CorridorLoopRun {
    pub walls: Vec<LineSegment>,
    pub lap_length: f64,
    pub distance: f64,
    pub frames: Vec<CorridorLoopFrame>,
    pub node_scans: Vec<Vec<Vector2<f64>>>,
    pub node_truth: Vec<Pose2D>,
    pub node_odometry: Vec<Pose2D>,
    pub node_front_end: Vec<Pose2D>,
    pub final_node_poses: Vec<Pose2D>,
    pub final_estimate: Pose2D,
    pub loop_closures: Vec<LoopClosure>,
    pub ambiguous_loop_rejections: usize,
}
Expand description

A full recorded run of the corridor-loop scenario.

Fields§

§walls: Vec<LineSegment>

Environment walls.

§lap_length: f64

Length of one lap of the corridor centerline [m].

§distance: f64

Total distance driven [m].

§frames: Vec<CorridorLoopFrame>

One frame per update, starting with the initial scan.

§node_scans: Vec<Vec<Vector2<f64>>>

Body-frame scan of each node.

§node_truth: Vec<Pose2D>

Ground truth at each node.

§node_odometry: Vec<Pose2D>

Wheel odometry at each node.

§node_front_end: Vec<Pose2D>

Front-end pose at each node.

§final_node_poses: Vec<Pose2D>

Node poses after a final optimization over all edges.

§final_estimate: Pose2D

Pose estimate after the final optimization.

§loop_closures: Vec<LoopClosure>

All accepted loop closures.

§ambiguous_loop_rejections: usize

Loop matches rejected as ambiguous (perceptual aliasing).

Implementations§

Source§

impl CorridorLoopRun

Source

pub fn is_wrong_loop(&self, closure: &LoopClosure, tolerance: f64) -> bool

Whether closure’s measured relative pose is off from ground truth by more than tolerance meters (a false loop closure).

Source

pub fn wrong_loop_closures(&self, tolerance: f64) -> usize

Number of false loop closures (see Self::is_wrong_loop).

Source

pub fn first_loop_frame(&self) -> Option<usize>

Index of the first frame that accepted a loop closure.

Trait Implementations§

Source§

impl Clone for CorridorLoopRun

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CorridorLoopRun

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V