Struct opencv::viz::WTrajectory
source · pub struct WTrajectory { /* private fields */ }
Expand description
This 3D Widget represents a trajectory. :
Implementations§
source§impl WTrajectory
impl WTrajectory
sourcepub fn new(
path: &dyn ToInputArray,
display_mode: i32,
scale: f64,
color: &Color
) -> Result<WTrajectory>
pub fn new(
path: &dyn ToInputArray,
display_mode: i32,
scale: f64,
color: &Color
) -> Result<WTrajectory>
Constructs a WTrajectory.
Parameters
- path: List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
- display_mode: Display mode. This can be PATH, FRAMES, and BOTH.
- scale: Scale of the frames. Polyline is not affected.
- color: Color of the polyline that represents path.
Frames are not affected. Displays trajectory of the given path as follows:
- PATH : Displays a poly line that represents the path.
- FRAMES : Displays coordinate frames at each pose.
- PATH & FRAMES : Displays both poly line and coordinate frames.
C++ default parameters
- display_mode: WTrajectory::PATH
- scale: 1.0
- color: Color::white()
Trait Implementations§
source§impl Boxed for WTrajectory
impl Boxed for WTrajectory
source§impl Drop for WTrajectory
impl Drop for WTrajectory
source§impl From<WTrajectory> for Widget
impl From<WTrajectory> for Widget
source§fn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
source§impl From<WTrajectory> for Widget3D
impl From<WTrajectory> for Widget3D
source§fn from(s: WTrajectory) -> Self
fn from(s: WTrajectory) -> Self
Converts to this type from the input type.
source§impl WTrajectoryTrait for WTrajectory
impl WTrajectoryTrait for WTrajectory
fn as_raw_mut_WTrajectory(&mut self) -> *mut c_void
source§impl WTrajectoryTraitConst for WTrajectory
impl WTrajectoryTraitConst for WTrajectory
fn as_raw_WTrajectory(&self) -> *const c_void
source§impl Widget3DTrait for WTrajectory
impl Widget3DTrait for WTrajectory
fn as_raw_mut_Widget3D(&mut self) -> *mut c_void
source§fn update_pose(&mut self, pose: Affine3d) -> Result<()>
fn update_pose(&mut self, pose: Affine3d) -> Result<()>
Updates pose of the widget by pre-multiplying its current pose. Read more