pub struct ImpedanceGains {
pub cartesian_stiffness: [f64; 6],
pub cartesian_damping: [f64; 6],
pub joint_stiffness: [f64; 7],
pub joint_damping: [f64; 7],
}Expand description
The stiffness and damping of the law, all finite and non-negative.
Fields§
§cartesian_stiffness: [f64; 6]Kx, base frame, translation first: N/m, then Nm/rad.
cartesian_damping: [f64; 6]Kxd, base frame, translation first: N s/m, then Nm s/rad.
joint_stiffness: [f64; 7]Kq, per joint, Nm/rad.
joint_damping: [f64; 7]Kqd, per joint, Nm s/rad.
Implementations§
Source§impl ImpedanceGains
impl ImpedanceGains
Sourcepub const CARTESIAN: ImpedanceGains
pub const CARTESIAN: ImpedanceGains
The default for a Cartesian target: DROID’s stiffness (a medium spring, 750 N/m) and soft joint springs that settle the redundancy, with the Cartesian damping raised to about a damping ratio of 0.8 from the arm’s apparent masses at the ready pose (0.94 kg along x and y, 3.9 kg along z; DROID’s 37 N s/m leaves z at 0.34 and ringing).
Sourcepub const DROID: ImpedanceGains
pub const DROID: ImpedanceGains
DROID’s production gains as they are, the parity preset: with
ImpedanceOptions::velocity_feedforward and
ImpedanceOptions::project_joint_gains both false the law is polymetis’s
HybridJointImpedanceControl, for replaying DROID-trained policies.
Sourcepub const JOINT: ImpedanceGains
pub const JOINT: ImpedanceGains
A joint PD for a joint target, the gains of examples/fer_joint_impedance.rs.
Sourcepub fn validate(&self) -> FrankaResult<()>
pub fn validate(&self) -> FrankaResult<()>
§Errors
FrankaError::InvalidArgument if a gain is not finite or negative.
Trait Implementations§
Source§impl Clone for ImpedanceGains
impl Clone for ImpedanceGains
Source§fn clone(&self) -> ImpedanceGains
fn clone(&self) -> ImpedanceGains
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ImpedanceGains
Source§impl Debug for ImpedanceGains
impl Debug for ImpedanceGains
Source§impl PartialEq for ImpedanceGains
impl PartialEq for ImpedanceGains
Source§fn eq(&self, other: &ImpedanceGains) -> bool
fn eq(&self, other: &ImpedanceGains) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImpedanceGains
Auto Trait Implementations§
impl Freeze for ImpedanceGains
impl RefUnwindSafe for ImpedanceGains
impl Send for ImpedanceGains
impl Sync for ImpedanceGains
impl Unpin for ImpedanceGains
impl UnsafeUnpin for ImpedanceGains
impl UnwindSafe for ImpedanceGains
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.