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§
Sourcefn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Whether the motion should terminate after this command has been processed.
Sourcefn set_finished(&mut self, finished: bool)
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".