pub struct CuCollisionContact {
pub kind: CuContactKind,
pub link_index: u16,
pub partner_index: u16,
pub signed_distance: Length,
}Expand description
Single contact or clearance violation between a robot link and another link or obstacle.
Fields§
§kind: CuContactKind§link_index: u16Robot collision-shape index.
partner_index: u16Partner shape index for self-collision, or obstacle index for environment collision.
signed_distance: LengthSurface-to-surface signed distance (negative indicates penetration).
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuCollisionContact
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CuCollisionContact
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 CuCollisionContact
impl Clone for CuCollisionContact
Source§fn clone(&self) -> CuCollisionContact
fn clone(&self) -> CuCollisionContact
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 CuCollisionContact
Source§impl Debug for CuCollisionContact
impl Debug for CuCollisionContact
Source§impl<__Context> Decode<__Context> for CuCollisionContact
impl<__Context> Decode<__Context> for CuCollisionContact
Source§impl Default for CuCollisionContact
impl Default for CuCollisionContact
Source§fn default() -> CuCollisionContact
fn default() -> CuCollisionContact
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CuCollisionContact
impl<'de> Deserialize<'de> for CuCollisionContact
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 CuCollisionContact
impl Encode for CuCollisionContact
Source§impl PartialEq for CuCollisionContact
impl PartialEq for CuCollisionContact
Source§impl Serialize for CuCollisionContact
impl Serialize for CuCollisionContact
impl StructuralPartialEq for CuCollisionContact
Source§impl TypePath for CuCollisionContact
impl TypePath for CuCollisionContact
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 CuCollisionContact
impl RefUnwindSafe for CuCollisionContact
impl Send for CuCollisionContact
impl Sync for CuCollisionContact
impl Unpin for CuCollisionContact
impl UnsafeUnpin for CuCollisionContact
impl UnwindSafe for CuCollisionContact
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