pub struct JointDataFixed {
pub joint_q: Configuration,
pub joint_v: Configuration,
pub placement: SE3,
pub joint_velocity: SpatialMotion,
}Expand description
Data structure containing the mutable properties of a fixed joint.
Fields§
§joint_q: ConfigurationThe joint configuration vector (always empty).
joint_v: ConfigurationThe joint velocity vector (always empty).
placement: SE3The placement of the joint in the local frame.
joint_velocity: SpatialMotionThe joint velocity as a spatial motion.
Implementations§
Source§impl JointDataFixed
impl JointDataFixed
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new JointDataFixed from given joint model.
§Arguments
joint_model- The fixed joint model.
§Returns
A new JointDataFixed object.
Trait Implementations§
Source§impl Clone for JointDataFixed
impl Clone for JointDataFixed
Source§fn clone(&self) -> JointDataFixed
fn clone(&self) -> JointDataFixed
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 JointDataFixed
impl Debug for JointDataFixed
Source§impl Default for JointDataFixed
impl Default for JointDataFixed
Source§impl JointData for JointDataFixed
impl JointData for JointDataFixed
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>,
)
fn update( &mut self, _joint_model: &JointWrapper, _joint_q: &Configuration, _joint_v: Option<&Configuration>, )
Updates the joint data with the current position and velocity configurations.
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 JointDataFixed
impl RefUnwindSafe for JointDataFixed
impl Send for JointDataFixed
impl Sync for JointDataFixed
impl Unpin for JointDataFixed
impl UnsafeUnpin for JointDataFixed
impl UnwindSafe for JointDataFixed
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.