pub struct Torques {
pub tau_J: [f64; 7],
pub motion_finished: bool,
}Expand description
Stores joint-level torque commands without gravity and friction.
Port of franka::Torques.
Fields§
§tau_J: [f64; 7]Desired torques in [Nm].
motion_finished: boolDetermines whether to finish a currently running motion.
Implementations§
Trait Implementations§
impl Copy for Torques
Source§impl Finishable for Torques
impl Finishable for Torques
Source§fn is_finished(&self) -> bool
fn is_finished(&self) -> bool
Whether the motion should terminate after this command has been processed.
Source§fn set_finished(&mut self, finished: bool)
fn set_finished(&mut self, finished: bool)
Sets the “terminate after this command” flag.
impl StructuralPartialEq for Torques
Auto Trait Implementations§
impl Freeze for Torques
impl RefUnwindSafe for Torques
impl Send for Torques
impl Sync for Torques
impl Unpin for Torques
impl UnsafeUnpin for Torques
impl UnwindSafe for Torques
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§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.