pub struct JointLimits {
pub effort: Configuration,
pub velocity: Configuration,
pub min_configuration: Configuration,
pub max_configuration: Configuration,
pub friction: Configuration,
pub damping: Configuration,
pub friction_loss: f64,
}Expand description
A joint limit, defining the physical constraints and dynamical properties of a joint.
Fields§
§effort: ConfigurationMaximum torque/force that can be applied by the joint.
velocity: ConfigurationMaximum velocity of the joint.
min_configuration: ConfigurationMinimum configuration of the joint.
max_configuration: ConfigurationMaximum configuration of the joint.
friction: ConfigurationJoint friction coefficient.
damping: ConfigurationJoint damping coefficient.
friction_loss: f64Dry friction loss.
Implementations§
Source§impl JointLimits
impl JointLimits
Sourcepub fn new(
effort: Configuration,
velocity: Configuration,
min_configuration: Configuration,
max_configuration: Configuration,
friction: Configuration,
damping: Configuration,
friction_loss: f64,
) -> Self
pub fn new( effort: Configuration, velocity: Configuration, min_configuration: Configuration, max_configuration: Configuration, friction: Configuration, damping: Configuration, friction_loss: f64, ) -> Self
Creates a new JointLimits with the given parameters.
§Arguments
effort- Maximum torque/force that can be applied by the joint.velocity- Maximum velocity of the joint.min_configuration- Minimum configuration of the joint.max_configuration- Maximum configuration of the joint.friction- Joint friction coefficient.damping- Joint damping coefficient.friction_loss- Dry friction loss.
§Returns
A new JointLimits object.
Sourcepub fn new_unbounded(nq: usize) -> Self
pub fn new_unbounded(nq: usize) -> Self
Creates a new unbounded JointLimits, with infinite limits and zero friction/damping.
§Returns
A new unbounded JointLimits object.
Trait Implementations§
Source§impl Clone for JointLimits
impl Clone for JointLimits
Source§fn clone(&self) -> JointLimits
fn clone(&self) -> JointLimits
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 JointLimits
impl Debug for JointLimits
Source§impl PartialEq for JointLimits
impl PartialEq for JointLimits
impl StructuralPartialEq for JointLimits
Auto Trait Implementations§
impl Freeze for JointLimits
impl RefUnwindSafe for JointLimits
impl Send for JointLimits
impl Sync for JointLimits
impl Unpin for JointLimits
impl UnsafeUnpin for JointLimits
impl UnwindSafe for JointLimits
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.