pub enum CuChainSpec<const N: usize> {
Preset(CuRobotPreset),
Inline(CuKinematicChain<N>),
}Expand description
Source of a robot chain in RON: a preset name or an inline chain.
"chain": "igus_rebel"
"chain": {"joints": [ /* N CuJointSpec */ ], "tool_offset": /* optional */}Variants§
Preset(CuRobotPreset)
A named preset; its joint count is checked against N by Self::resolve.
Inline(CuKinematicChain<N>)
An explicit chain.
Implementations§
Source§impl<const N: usize> CuChainSpec<N>
impl<const N: usize> CuChainSpec<N>
Sourcepub fn resolve(&self) -> CuResult<CuKinematicChain<N>>
pub fn resolve(&self) -> CuResult<CuKinematicChain<N>>
Builds and validates the chain.
Trait Implementations§
Source§impl<const N: usize> Clone for CuChainSpec<N>
impl<const N: usize> Clone for CuChainSpec<N>
Source§fn clone(&self) -> CuChainSpec<N>
fn clone(&self) -> CuChainSpec<N>
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<const N: usize> Copy for CuChainSpec<N>
Source§impl<const N: usize> Debug for CuChainSpec<N>
impl<const N: usize> Debug for CuChainSpec<N>
Source§impl<'de, const N: usize> Deserialize<'de> for CuChainSpec<N>
impl<'de, const N: usize> Deserialize<'de> for CuChainSpec<N>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> From<CuKinematicChain<N>> for CuChainSpec<N>
impl<const N: usize> From<CuKinematicChain<N>> for CuChainSpec<N>
Source§fn from(chain: CuKinematicChain<N>) -> Self
fn from(chain: CuKinematicChain<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<CuRobotPreset> for CuChainSpec<N>
impl<const N: usize> From<CuRobotPreset> for CuChainSpec<N>
Source§fn from(preset: CuRobotPreset) -> Self
fn from(preset: CuRobotPreset) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> PartialEq for CuChainSpec<N>
impl<const N: usize> PartialEq for CuChainSpec<N>
Source§impl<const N: usize> Serialize for CuChainSpec<N>
impl<const N: usize> Serialize for CuChainSpec<N>
impl<const N: usize> StructuralPartialEq for CuChainSpec<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for CuChainSpec<N>
impl<const N: usize> RefUnwindSafe for CuChainSpec<N>
impl<const N: usize> Send for CuChainSpec<N>
impl<const N: usize> Sync for CuChainSpec<N>
impl<const N: usize> Unpin for CuChainSpec<N>
impl<const N: usize> UnsafeUnpin for CuChainSpec<N>
impl<const N: usize> UnwindSafe for CuChainSpec<N>
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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