pub struct CuUrdfImport<'a> {
pub base_link: &'a str,
pub tip_link: &'a str,
pub collision: CuCollisionModelParams,
}Expand description
Named inputs of CuRobotDescription::from_urdf.
ⓘ
CuUrdfImport::new("base", "tool").with_collision(CuCollisionModelParams {
safety_margin: Length::new::<meter>(0.005),
skip_adjacent_links: false,
})Fields§
§base_link: &'a strURDF link where the serial chain starts.
tip_link: &'a strURDF link where the serial chain ends (the tool frame).
collision: CuCollisionModelParamsCollision model parameters. Default: zero margin, skip_adjacent_links: false.
Implementations§
Source§impl<'a> CuUrdfImport<'a>
impl<'a> CuUrdfImport<'a>
Sourcepub fn new(base_link: &'a str, tip_link: &'a str) -> Self
pub fn new(base_link: &'a str, tip_link: &'a str) -> Self
Selects the base_link to tip_link path with default collision parameters.
Sourcepub const fn with_collision(self, collision: CuCollisionModelParams) -> Self
pub const fn with_collision(self, collision: CuCollisionModelParams) -> Self
Replaces the collision model parameters.
Trait Implementations§
Source§impl<'a> Clone for CuUrdfImport<'a>
impl<'a> Clone for CuUrdfImport<'a>
Source§fn clone(&self) -> CuUrdfImport<'a>
fn clone(&self) -> CuUrdfImport<'a>
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<'a> Copy for CuUrdfImport<'a>
Source§impl<'a> Debug for CuUrdfImport<'a>
impl<'a> Debug for CuUrdfImport<'a>
Source§impl<'a> PartialEq for CuUrdfImport<'a>
impl<'a> PartialEq for CuUrdfImport<'a>
impl<'a> StructuralPartialEq for CuUrdfImport<'a>
Auto Trait Implementations§
impl<'a> Freeze for CuUrdfImport<'a>
impl<'a> RefUnwindSafe for CuUrdfImport<'a>
impl<'a> Send for CuUrdfImport<'a>
impl<'a> Sync for CuUrdfImport<'a>
impl<'a> Unpin for CuUrdfImport<'a>
impl<'a> UnsafeUnpin for CuUrdfImport<'a>
impl<'a> UnwindSafe for CuUrdfImport<'a>
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> 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