pub struct JointDataRevolute {
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 revolute joint.
Fields§
§joint_q: ConfigurationThe joint configuration vector (angle of rotation).
joint_v: ConfigurationThe joint velocity vector (angle velocity).
placement: SE3The placement of the joint in the local frame.
joint_velocity: SpatialMotionThe joint velocity as a spatial motion.
Implementations§
Source§impl JointDataRevolute
impl JointDataRevolute
Sourcepub fn new(_joint_model: &JointModelRevolute) -> Self
pub fn new(_joint_model: &JointModelRevolute) -> Self
Trait Implementations§
Source§impl Clone for JointDataRevolute
impl Clone for JointDataRevolute
Source§fn clone(&self) -> JointDataRevolute
fn clone(&self) -> JointDataRevolute
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 JointDataRevolute
impl Debug for JointDataRevolute
Source§impl JointData for JointDataRevolute
impl JointData for JointDataRevolute
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 JointDataRevolute
impl RefUnwindSafe for JointDataRevolute
impl Send for JointDataRevolute
impl Sync for JointDataRevolute
impl Unpin for JointDataRevolute
impl UnwindSafe for JointDataRevolute
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.