pub struct JointLimit {
pub lower: f64,
pub upper: f64,
pub effort: f64,
pub velocity: f64,
}Expand description
How far, how hard and how fast a joint may be driven.
The default is all zeroes, which is what the document compiler emits for a
URDF joint that authors no <limit>. The range must be finite and
non-inverted, which RobotBuilder::build checks.
Fields§
§lower: f64The lowest position the joint may reach, in metres or radians.
upper: f64The highest position the joint may reach, in metres or radians.
effort: f64The largest force or torque the joint may apply, in N or Nm.
velocity: f64The largest speed the joint may move at, in m/s or rad/s.
Trait Implementations§
Source§impl Clone for JointLimit
impl Clone for JointLimit
Source§fn clone(&self) -> JointLimit
fn clone(&self) -> JointLimit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for JointLimit
Source§impl Debug for JointLimit
impl Debug for JointLimit
Source§impl Default for JointLimit
impl Default for JointLimit
Source§fn default() -> JointLimit
fn default() -> JointLimit
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JointLimit
impl RefUnwindSafe for JointLimit
impl Send for JointLimit
impl Sync for JointLimit
impl Unpin for JointLimit
impl UnsafeUnpin for JointLimit
impl UnwindSafe for JointLimit
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