Skip to main content

Finishable

Trait Finishable 

Source
pub trait Finishable {
    // Required methods
    fn is_finished(&self) -> bool;
    fn set_finished(&mut self, finished: bool);
}
Expand description

Helper trait for control and motion generation loops.

Port of franka::Finishable, which in C++ is a base struct carrying the public motion_finished flag. In Rust the flag stays a public field on each command type and this trait gives the control loop uniform access to it.

Required Methods§

Source

fn is_finished(&self) -> bool

Whether the motion should terminate after this command has been processed.

Source

fn set_finished(&mut self, finished: bool)

Sets the “terminate after this command” flag.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§