pub struct JointDataContinuous {
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 continuous joint.
Fields§
§joint_q: ConfigurationThe joint configuration vector (cosine and sine of the angle).
joint_v: ConfigurationThe joint velocity vector (angular velocity).
placement: SE3The placement of the joint in the local frame.
joint_velocity: SpatialMotionThe joint velocity as a spatial motion.
Implementations§
Source§impl JointDataContinuous
impl JointDataContinuous
Sourcepub fn new(_joint_model: &JointModelContinuous) -> Self
pub fn new(_joint_model: &JointModelContinuous) -> Self
Trait Implementations§
Source§impl Clone for JointDataContinuous
impl Clone for JointDataContinuous
Source§fn clone(&self) -> JointDataContinuous
fn clone(&self) -> JointDataContinuous
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 JointDataContinuous
impl Debug for JointDataContinuous
Source§impl Default for JointDataContinuous
impl Default for JointDataContinuous
Source§impl JointData for JointDataContinuous
impl JointData for JointDataContinuous
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 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_placement(&self) -> SE3
fn get_joint_placement(&self) -> SE3
Returns the placement of the joint in the world frame.
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 JointDataContinuous
impl RefUnwindSafe for JointDataContinuous
impl Send for JointDataContinuous
impl Sync for JointDataContinuous
impl Unpin for JointDataContinuous
impl UnwindSafe for JointDataContinuous
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.