pub struct CuJointMetric {
pub angular_scale: Angle,
pub linear_scale: Length,
}Expand description
Physical scaling used to compare angular and linear coordinates without mixing units.
Fields§
§angular_scale: Angle§linear_scale: LengthImplementations§
Source§impl CuJointMetric
impl CuJointMetric
Sourcepub fn normalized(self, q: CuJointPosition) -> f64
pub fn normalized(self, q: CuJointPosition) -> f64
Returns a dimensionless joint coordinate for numerical algorithms.
Sourcepub fn scale(self, q: CuJointPosition) -> f64
pub fn scale(self, q: CuJointPosition) -> f64
Returns the SI scale (radians or meters) that normalizes coordinates of q’s joint kind;
1.0 for fixed joints.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointMetric
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointMetric
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 CuJointMetric
impl Clone for CuJointMetric
Source§fn clone(&self) -> CuJointMetric
fn clone(&self) -> CuJointMetric
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 CuJointMetric
Source§impl Debug for CuJointMetric
impl Debug for CuJointMetric
Source§impl<__Context> Decode<__Context> for CuJointMetric
impl<__Context> Decode<__Context> for CuJointMetric
Source§impl Default for CuJointMetric
impl Default for CuJointMetric
Source§impl<'de> Deserialize<'de> for CuJointMetric
impl<'de> Deserialize<'de> for CuJointMetric
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 CuJointMetric
impl Encode for CuJointMetric
Source§impl PartialEq for CuJointMetric
impl PartialEq for CuJointMetric
Source§impl Serialize for CuJointMetric
impl Serialize for CuJointMetric
impl StructuralPartialEq for CuJointMetric
Source§impl TypePath for CuJointMetric
impl TypePath for CuJointMetric
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 CuJointMetric
impl RefUnwindSafe for CuJointMetric
impl Send for CuJointMetric
impl Sync for CuJointMetric
impl Unpin for CuJointMetric
impl UnsafeUnpin for CuJointMetric
impl UnwindSafe for CuJointMetric
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