pub struct CuJointSpec {
pub joint_type: CuJointType,
pub origin_translation: [Length; 3],
pub origin_rpy: [Angle; 3],
pub axis: CuJointAxis,
pub limits: CuJointLimits,
}Expand description
Static kinematic specification of a single joint following URDF conventions.
Fields§
§joint_type: CuJointTypeActuation mechanism.
origin_translation: [Length; 3]Parent-to-joint translation (URDF origin xyz).
origin_rpy: [Angle; 3]Parent-to-joint roll-pitch-yaw (URDF origin rpy).
axis: CuJointAxisActuation axis in the joint frame.
limits: CuJointLimitsPosition and velocity bounds.
Implementations§
Source§impl CuJointSpec
impl CuJointSpec
Sourcepub const fn revolute(
origin_translation: [Length64; 3],
origin_rpy: [Angle64; 3],
axis: CuJointAxis,
limits: CuJointLimits,
) -> Self
pub const fn revolute( origin_translation: [Length64; 3], origin_rpy: [Angle64; 3], axis: CuJointAxis, limits: CuJointLimits, ) -> Self
Creates a revolute joint from its parent-frame origin (URDF xyz, rpy).
Sourcepub const fn prismatic(
origin_translation: [Length64; 3],
origin_rpy: [Angle64; 3],
axis: CuJointAxis,
limits: CuJointLimits,
) -> Self
pub const fn prismatic( origin_translation: [Length64; 3], origin_rpy: [Angle64; 3], axis: CuJointAxis, limits: CuJointLimits, ) -> Self
Creates a prismatic joint from its parent-frame origin (URDF xyz, rpy).
Sourcepub fn validate_coordinate(&self, q: CuJointPosition) -> CuResult<()>
pub fn validate_coordinate(&self, q: CuJointPosition) -> CuResult<()>
Checks coordinate units and validity of joint specifications before numerical work.
Sourcepub fn origin_transform(&self) -> Transform3D<f64>
pub fn origin_transform(&self) -> Transform3D<f64>
Computes the static parent-to-joint origin transform.
Sourcepub fn motion_transform(&self, q: CuJointPosition) -> CuResult<Transform3D<f64>>
pub fn motion_transform(&self, q: CuJointPosition) -> CuResult<Transform3D<f64>>
Computes the local motion transform for joint displacement q.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointSpec
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuJointSpec
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 CuJointSpec
impl Clone for CuJointSpec
Source§fn clone(&self) -> CuJointSpec
fn clone(&self) -> CuJointSpec
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 CuJointSpec
Source§impl Debug for CuJointSpec
impl Debug for CuJointSpec
Source§impl<__Context> Decode<__Context> for CuJointSpec
impl<__Context> Decode<__Context> for CuJointSpec
Source§impl Default for CuJointSpec
impl Default for CuJointSpec
Source§fn default() -> CuJointSpec
fn default() -> CuJointSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuJointSpec
impl<'de> Deserialize<'de> for CuJointSpec
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 CuJointSpec
impl Encode for CuJointSpec
Source§impl PartialEq for CuJointSpec
impl PartialEq for CuJointSpec
Source§impl Serialize for CuJointSpec
impl Serialize for CuJointSpec
impl StructuralPartialEq for CuJointSpec
Source§impl TypePath for CuJointSpec
impl TypePath for CuJointSpec
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 CuJointSpec
impl RefUnwindSafe for CuJointSpec
impl Send for CuJointSpec
impl Sync for CuJointSpec
impl Unpin for CuJointSpec
impl UnsafeUnpin for CuJointSpec
impl UnwindSafe for CuJointSpec
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