pub struct CartesianVelocities {
pub O_dP_EE: [f64; 6],
pub elbow: [f64; 2],
pub has_elbow: bool,
pub motion_finished: bool,
}Expand description
Stores values for Cartesian velocity motion generation.
Port of franka::CartesianVelocities.
Fields§
§O_dP_EE: [f64; 6]Cartesian velocity with respect to the base frame O: (dx, dy, dz) in [m/s] and
(omega_x, omega_y, omega_z) in [rad/s].
elbow: [f64; 2]Elbow configuration, see CartesianPose::elbow.
has_elbow: boolWhether there is a stored elbow configuration, see CartesianPose::has_elbow.
motion_finished: boolDetermines whether to finish a currently running motion.
Implementations§
Source§impl CartesianVelocities
impl CartesianVelocities
Sourcepub fn new(O_dP_EE: [f64; 6]) -> Self
pub fn new(O_dP_EE: [f64; 6]) -> Self
Creates a new CartesianVelocities without an elbow configuration.
Sourcepub fn with_elbow(O_dP_EE: [f64; 6], elbow: [f64; 2]) -> Self
pub fn with_elbow(O_dP_EE: [f64; 6], elbow: [f64; 2]) -> Self
Creates a new CartesianVelocities with an elbow configuration.
Sourcepub fn validate(&self) -> FrankaResult<()>
pub fn validate(&self) -> FrankaResult<()>
Validates the command like libfranka’s control_loop.cpp does before sending it
(checkFinite(command.O_dP_EE_c) and, if an elbow is set, checkElbow(command.elbow_c)).
Trait Implementations§
Source§impl ActiveMotionInput for CartesianVelocities
impl ActiveMotionInput for CartesianVelocities
Source§fn create_motion_command(&self) -> FrankaResult<MotionGeneratorCommand>
fn create_motion_command(&self) -> FrankaResult<MotionGeneratorCommand>
Validates the command and converts it into the wire motion command.
Source§impl Clone for CartesianVelocities
impl Clone for CartesianVelocities
Source§fn clone(&self) -> CartesianVelocities
fn clone(&self) -> CartesianVelocities
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CartesianVelocities
Source§impl Debug for CartesianVelocities
impl Debug for CartesianVelocities
Source§impl Finishable for CartesianVelocities
impl Finishable for CartesianVelocities
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.
Source§impl MotionGenerator for CartesianVelocities
impl MotionGenerator for CartesianVelocities
Source§const KIND: MotionGeneratorKind = MotionGeneratorKind::CartesianVelocity
const KIND: MotionGeneratorKind = MotionGeneratorKind::CartesianVelocity
The motion generator this command type drives.
Source§impl PartialEq for CartesianVelocities
impl PartialEq for CartesianVelocities
Source§fn eq(&self, other: &CartesianVelocities) -> bool
fn eq(&self, other: &CartesianVelocities) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CartesianVelocities
Auto Trait Implementations§
impl Freeze for CartesianVelocities
impl RefUnwindSafe for CartesianVelocities
impl Send for CartesianVelocities
impl Sync for CartesianVelocities
impl Unpin for CartesianVelocities
impl UnsafeUnpin for CartesianVelocities
impl UnwindSafe for CartesianVelocities
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.