pub struct Arm {
pub link: f64,
pub effector: f64,
pub column_inertia: f64,
pub bodies: [Body; 3],
pub wafer: Body,
}Expand description
The arm’s geometry and masses, apart from drives and bands.
Fields§
§link: f64Both links’ length L, and the effector’s from the wrist to the wafer centre.
effector: f64§column_inertia: f64What turns with the column about its axis (the column’s top, motor 2, the shoulder pulley), kg m^2.
bodies: [Body; 3]Upper arm, forearm, effector.
wafer: BodyThe wafer, its centre at the effector’s length.
Implementations§
Source§impl Arm
impl Arm
Sourcepub fn reach(&self, phi: f64) -> [f64; 3]
pub fn reach(&self, phi: f64) -> [f64; 3]
r(phi) = 2 L cos(phi) + e, and its first and second derivative by phi.
Sourcepub fn phi(&self, r: f64) -> f64
pub fn phi(&self, r: f64) -> f64
The upper arm’s angle phi from the radial line for a reach r; NaN beyond 2 L + e or behind -2 L + e.
Sourcepub fn point_motion(&self, q: &Q, qd: &Q, k: usize, d: f64) -> ([Q; 2], V2)
pub fn point_motion(&self, q: &Q, qd: &Q, k: usize, d: f64) -> ([Q; 2], V2)
That point’s Jacobian dp/dq (rows x and y) and its acceleration at q’’ = 0 (the centripetal terms).
Sourcepub fn wafer_centre(&self, q: &Q) -> V2
pub fn wafer_centre(&self, q: &Q) -> V2
The wafer centre at q.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Arm
impl RefUnwindSafe for Arm
impl Send for Arm
impl Sync for Arm
impl Unpin for Arm
impl UnsafeUnpin for Arm
impl UnwindSafe for Arm
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