pub struct JointDataWrapper { /* private fields */ }Expand description
Wrapper struct for different joint data implementations.
This struct provides a unified interface to interact with different joint types
through the JointData trait. It serves as the main entry point for users of
the library to work with joints data.
Implementations§
Source§impl JointDataWrapper
impl JointDataWrapper
Sourcepub fn continuous(joint_data: JointDataContinuous) -> Self
pub fn continuous(joint_data: JointDataContinuous) -> Self
Creates a new JointDataWrapper from a JointDataContinuous.
Sourcepub fn prismatic(joint_data: JointDataPrismatic) -> Self
pub fn prismatic(joint_data: JointDataPrismatic) -> Self
Creates a new JointDataWrapper from a JointDataPrismatic.
Sourcepub fn revolute(joint_data: JointDataRevolute) -> Self
pub fn revolute(joint_data: JointDataRevolute) -> Self
Creates a new JointDataWrapper from a JointDataRevolute.
Sourcepub fn fixed(joint_data: JointDataFixed) -> Self
pub fn fixed(joint_data: JointDataFixed) -> Self
Creates a new JointDataWrapper from a JointDataFixed.
Trait Implementations§
Source§impl Clone for JointDataWrapper
impl Clone for JointDataWrapper
Source§fn clone(&self) -> JointDataWrapper
fn clone(&self) -> JointDataWrapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JointDataWrapper
impl Debug for JointDataWrapper
Source§impl JointData for JointDataWrapper
impl JointData for JointDataWrapper
Source§fn get_joint_q(&self) -> &Configuration
fn get_joint_q(&self) -> &Configuration
Returns the joint configuration vector.
Source§fn get_joint_v(&self) -> &Configuration
fn get_joint_v(&self) -> &Configuration
Returns the joint velocity vector.
Source§fn get_joint_placement(&self) -> SE3
fn get_joint_placement(&self) -> SE3
Returns the placement of the joint in the world frame.
Source§fn update(
&mut self,
joint_model: &JointWrapper,
joint_q: &Configuration,
joint_v: Option<&Configuration>,
) -> Result<(), JointError>
fn update( &mut self, joint_model: &JointWrapper, joint_q: &Configuration, joint_v: Option<&Configuration>, ) -> Result<(), JointError>
Updates the joint data with the given model and angle.
Source§fn get_joint_velocity(&self) -> &SpatialMotion
fn get_joint_velocity(&self) -> &SpatialMotion
Returns the joint velocity as a spatial motion.
Auto Trait Implementations§
impl Freeze for JointDataWrapper
impl RefUnwindSafe for JointDataWrapper
impl Send for JointDataWrapper
impl Sync for JointDataWrapper
impl Unpin for JointDataWrapper
impl UnwindSafe for JointDataWrapper
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,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.