pub struct URDFJoint {
pub type: URDFJointType,
pub xyz: (f64, f64, f64),
pub rpy: (f64, f64, f64),
}Expand description
A URDF joint: its type plus the <origin> transform (xyz translation and
rpy Euler rotation) from the parent link’s frame to the joint’s own frame.
Fields§
§type: URDFJointType§xyz: (f64, f64, f64)§rpy: (f64, f64, f64)Implementations§
Source§impl URDFJoint
impl URDFJoint
pub const fn fixed(xyz: (f64, f64, f64), rpy: (f64, f64, f64)) -> Self
pub const fn revolute( xyz: (f64, f64, f64), rpy: (f64, f64, f64), axis: (f64, f64, f64), ) -> Self
pub const fn prismatic( xyz: (f64, f64, f64), rpy: (f64, f64, f64), axis: (f64, f64, f64), ) -> Self
Sourcepub const fn origin_affine(&self) -> Affine3A
pub const fn origin_affine(&self) -> Affine3A
Build the Affine3A corresponding to this joint’s <origin>, using
the URDF RPY convention R = Rz(yaw) · Ry(pitch) · Rx(roll).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for URDFJoint
impl RefUnwindSafe for URDFJoint
impl Send for URDFJoint
impl Sync for URDFJoint
impl Unpin for URDFJoint
impl UnsafeUnpin for URDFJoint
impl UnwindSafe for URDFJoint
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