pub enum CuJointJerk {
Revolute(AngularJerk),
Prismatic(Jerk),
Fixed,
}Expand description
A joint jerk carries angular (rad/s³) or linear (m/s³) jerk units.
An unbounded jerk (for example a jerk limit that should not constrain) is expressed as
f64::INFINITY inside the unit value, e.g.
CuJointJerk::Revolute(AngularJerk::new::<radian_per_second_cubed>(f64::INFINITY));
consumers may alternatively use Option<CuJointJerk> at the use site.
Variants§
Implementations§
Source§impl CuJointJerk
impl CuJointJerk
Sourcepub fn from_coordinate(position: CuJointPosition, value: f64) -> Self
pub fn from_coordinate(position: CuJointPosition, value: f64) -> Self
Creates a value of the same joint kind as position from an SI value
(rad/s³ or m/s³). Fixed joints yield Fixed.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointJerk
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointJerk
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for CuJointJerk
impl Clone for CuJointJerk
Source§fn clone(&self) -> CuJointJerk
fn clone(&self) -> CuJointJerk
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 CuJointJerk
Source§impl Debug for CuJointJerk
impl Debug for CuJointJerk
Source§impl<__Context> Decode<__Context> for CuJointJerk
impl<__Context> Decode<__Context> for CuJointJerk
Source§impl Default for CuJointJerk
impl Default for CuJointJerk
Source§impl<'de> Deserialize<'de> for CuJointJerk
impl<'de> Deserialize<'de> for CuJointJerk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for CuJointJerk
impl Encode for CuJointJerk
Source§impl From<AngularJerk> for CuJointJerk
impl From<AngularJerk> for CuJointJerk
Source§impl From<Jerk> for CuJointJerk
impl From<Jerk> for CuJointJerk
Source§impl PartialEq for CuJointJerk
impl PartialEq for CuJointJerk
Source§impl Serialize for CuJointJerk
impl Serialize for CuJointJerk
impl StructuralPartialEq for CuJointJerk
Source§impl TypePath for CuJointJerk
impl TypePath for CuJointJerk
fn type_path() -> &'static str
fn short_type_path() -> &'static str
fn type_ident() -> Option<&'static str>
fn crate_name() -> Option<&'static str>
fn module_path() -> Option<&'static str>
Auto Trait Implementations§
impl Freeze for CuJointJerk
impl RefUnwindSafe for CuJointJerk
impl Send for CuJointJerk
impl Sync for CuJointJerk
impl Unpin for CuJointJerk
impl UnsafeUnpin for CuJointJerk
impl UnwindSafe for CuJointJerk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CuMsgPayload for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> ElementType for T
impl<T> ElementType for T
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more