pub struct Visualizer { /* private fields */ }Expand description
Main visualizer struct
Implementations§
Source§impl Visualizer
impl Visualizer
Sourcepub fn set_x_label(&mut self, label: &str) -> &mut Self
pub fn set_x_label(&mut self, label: &str) -> &mut Self
Set X axis label
Sourcepub fn set_y_label(&mut self, label: &str) -> &mut Self
pub fn set_y_label(&mut self, label: &str) -> &mut Self
Set Y axis label
Sourcepub fn set_x_range(&mut self, min: f64, max: f64) -> &mut Self
pub fn set_x_range(&mut self, min: f64, max: f64) -> &mut Self
Set X axis range
Sourcepub fn set_y_range(&mut self, min: f64, max: f64) -> &mut Self
pub fn set_y_range(&mut self, min: f64, max: f64) -> &mut Self
Set Y axis range
Sourcepub fn set_aspect_ratio(&mut self, ratio: Option<f64>) -> &mut Self
pub fn set_aspect_ratio(&mut self, ratio: Option<f64>) -> &mut Self
Set aspect ratio (None for auto)
Sourcepub fn figure_mut(&mut self) -> &mut Figure
pub fn figure_mut(&mut self) -> &mut Figure
Get mutable reference to the internal figure for advanced usage
Sourcepub fn plot_path_xy(
&mut self,
x: &[f64],
y: &[f64],
style: &PathStyle,
) -> &mut Self
pub fn plot_path_xy( &mut self, x: &[f64], y: &[f64], style: &PathStyle, ) -> &mut Self
Plot a path from x,y vectors
Sourcepub fn plot_obstacles(&mut self, obstacles: &Obstacles) -> &mut Self
pub fn plot_obstacles(&mut self, obstacles: &Obstacles) -> &mut Self
Plot obstacles
Sourcepub fn plot_obstacles_xy(&mut self, ox: &[f64], oy: &[f64]) -> &mut Self
pub fn plot_obstacles_xy(&mut self, ox: &[f64], oy: &[f64]) -> &mut Self
Plot obstacles from x,y vectors
Sourcepub fn plot_point(&mut self, point: Point2D, style: &PointStyle) -> &mut Self
pub fn plot_point(&mut self, point: Point2D, style: &PointStyle) -> &mut Self
Plot a single point (start, goal, etc.)
Sourcepub fn plot_points(
&mut self,
points: &[Point2D],
style: &PointStyle,
) -> &mut Self
pub fn plot_points( &mut self, points: &[Point2D], style: &PointStyle, ) -> &mut Self
Plot multiple points
Sourcepub fn plot_points_xy(
&mut self,
x: &[f64],
y: &[f64],
style: &PointStyle,
) -> &mut Self
pub fn plot_points_xy( &mut self, x: &[f64], y: &[f64], style: &PointStyle, ) -> &mut Self
Plot points from x,y vectors
Sourcepub fn plot_robot(&mut self, pose: &Pose2D, size: f64) -> &mut Self
pub fn plot_robot(&mut self, pose: &Pose2D, size: f64) -> &mut Self
Plot robot pose with direction indicator
Sourcepub fn plot_start(&mut self, point: Point2D) -> &mut Self
pub fn plot_start(&mut self, point: Point2D) -> &mut Self
Plot start position
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Visualizer
impl RefUnwindSafe for Visualizer
impl Send for Visualizer
impl Sync for Visualizer
impl Unpin for Visualizer
impl UnsafeUnpin for Visualizer
impl UnwindSafe for Visualizer
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.