pub struct JointPositions {
pub q: [f64; 7],
pub motion_finished: bool,
}Expand description
Stores values for joint position motion generation.
Port of franka::JointPositions.
Fields§
§q: [f64; 7]Desired joint angles in [rad].
motion_finished: boolDetermines whether to finish a currently running motion.
Implementations§
Trait Implementations§
Source§impl ActiveMotionInput for JointPositions
impl ActiveMotionInput for JointPositions
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 JointPositions
impl Clone for JointPositions
Source§fn clone(&self) -> JointPositions
fn clone(&self) -> JointPositions
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 JointPositions
Source§impl Debug for JointPositions
impl Debug for JointPositions
Source§impl Finishable for JointPositions
impl Finishable for JointPositions
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 JointPositions
impl MotionGenerator for JointPositions
Source§const KIND: MotionGeneratorKind = MotionGeneratorKind::JointPosition
const KIND: MotionGeneratorKind = MotionGeneratorKind::JointPosition
The motion generator this command type drives.
Source§impl PartialEq for JointPositions
impl PartialEq for JointPositions
Source§fn eq(&self, other: &JointPositions) -> bool
fn eq(&self, other: &JointPositions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JointPositions
Auto Trait Implementations§
impl Freeze for JointPositions
impl RefUnwindSafe for JointPositions
impl Send for JointPositions
impl Sync for JointPositions
impl Unpin for JointPositions
impl UnsafeUnpin for JointPositions
impl UnwindSafe for JointPositions
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.