pub struct JointVelocityLimitsConfig { /* private fields */ }Expand description
Position-based joint velocity limit parameters for all seven joints.
Port of franka::JointVelocityLimitsConfig.
Implementations§
Source§impl JointVelocityLimitsConfig
impl JointVelocityLimitsConfig
Sourcepub fn from_urdf(urdf: &str) -> FrankaResult<Self>
pub fn from_urdf(urdf: &str) -> FrankaResult<Self>
Parses the joint velocity limit parameters from a URDF string.
Port of JointVelocityLimitsConfig::parseFromURDF. Every <joint> element whose name
matches (exactly, or as a substring, so fr3_joint1 matches too) one of joint1 ..
joint7 must carry a <limit> element with velocity, upper and lower attributes
and a <position_based_velocity_limits> element with velocity_offset and
deceleration_limit attributes; all seven joints must be present.
§Errors
FrankaError::InvalidArgument (libfranka throws std::runtime_error) if the string is
not valid XML, has no <robot> root, misses one of the elements, attributes or joints,
or if an attribute is not a number.
Sourcepub fn joint_params(&self) -> &[PositionBasedJointVelocityLimitConstants; 7]
pub fn joint_params(&self) -> &[PositionBasedJointVelocityLimitConstants; 7]
Joint velocity limit parameters of all joints.
Port of JointVelocityLimitsConfig::getJointParams.
Trait Implementations§
Source§impl Clone for JointVelocityLimitsConfig
impl Clone for JointVelocityLimitsConfig
Source§fn clone(&self) -> JointVelocityLimitsConfig
fn clone(&self) -> JointVelocityLimitsConfig
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 JointVelocityLimitsConfig
Source§impl Debug for JointVelocityLimitsConfig
impl Debug for JointVelocityLimitsConfig
Source§impl Default for JointVelocityLimitsConfig
impl Default for JointVelocityLimitsConfig
Source§fn default() -> JointVelocityLimitsConfig
fn default() -> JointVelocityLimitsConfig
Source§impl Index<usize> for JointVelocityLimitsConfig
impl Index<usize> for JointVelocityLimitsConfig
Source§impl PartialEq for JointVelocityLimitsConfig
impl PartialEq for JointVelocityLimitsConfig
Source§fn eq(&self, other: &JointVelocityLimitsConfig) -> bool
fn eq(&self, other: &JointVelocityLimitsConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for JointVelocityLimitsConfig
Auto Trait Implementations§
impl Freeze for JointVelocityLimitsConfig
impl RefUnwindSafe for JointVelocityLimitsConfig
impl Send for JointVelocityLimitsConfig
impl Sync for JointVelocityLimitsConfig
impl Unpin for JointVelocityLimitsConfig
impl UnsafeUnpin for JointVelocityLimitsConfig
impl UnwindSafe for JointVelocityLimitsConfig
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.