pub struct CuLinkShape {
pub shape: CuCollisionShape,
pub frame: Option<usize>,
}Expand description
A robot collision shape and the frame it is expressed in.
frame is a joint-frame index (0..N, as produced by
CuKinematicChain::forward_frames) or None for the robot base frame.
RON: {"shape": {"sphere": {...}}, "frame": 2}; omit frame for the base frame.
Fields§
§shape: CuCollisionShapeGeometry in the local coordinates of frame.
frame: Option<usize>Joint-frame index, or None for the base frame.
Implementations§
Source§impl CuLinkShape
impl CuLinkShape
Sourcepub const fn new(shape: CuCollisionShape, frame: Option<usize>) -> Self
pub const fn new(shape: CuCollisionShape, frame: Option<usize>) -> Self
Creates a link shape on frame (None = base frame).
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuLinkShape
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuLinkShape
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 CuLinkShape
impl Clone for CuLinkShape
Source§fn clone(&self) -> CuLinkShape
fn clone(&self) -> CuLinkShape
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 CuLinkShape
Source§impl Debug for CuLinkShape
impl Debug for CuLinkShape
Source§impl<__Context> Decode<__Context> for CuLinkShape
impl<__Context> Decode<__Context> for CuLinkShape
Source§impl Default for CuLinkShape
impl Default for CuLinkShape
Source§fn default() -> CuLinkShape
fn default() -> CuLinkShape
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuLinkShape
impl<'de> Deserialize<'de> for CuLinkShape
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 CuLinkShape
impl Encode for CuLinkShape
Source§impl PartialEq for CuLinkShape
impl PartialEq for CuLinkShape
Source§impl Serialize for CuLinkShape
impl Serialize for CuLinkShape
impl StructuralPartialEq for CuLinkShape
Source§impl TypePath for CuLinkShape
impl TypePath for CuLinkShape
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 CuLinkShape
impl RefUnwindSafe for CuLinkShape
impl Send for CuLinkShape
impl Sync for CuLinkShape
impl Unpin for CuLinkShape
impl UnsafeUnpin for CuLinkShape
impl UnwindSafe for CuLinkShape
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