Struct ScapuloHumeralCoupling
pub struct ScapuloHumeralCoupling {
pub setting_threshold_rad: f32,
pub gh_to_st_ratio: f32,
pub scapular_upward_axis: [f32; 3],
pub humeral_elevation_axis: [f32; 3],
pub humeral_shaft_axis: [f32; 3],
pub max_scapular_elevation_rad: f32,
}Expand description
Coupled glenohumeral-to-scapulothoracic rhythm (2:1 GH:ST above 30 deg elevation).
Fields§
§setting_threshold_rad: f32Setting-phase elevation threshold below which scapular rotation is zero (default: 30 deg).
gh_to_st_ratio: f32Glenohumeral-to-scapulothoracic incremental ratio above threshold (default: 2.0 for 2:1).
scapular_upward_axis: [f32; 3]Unit axis of scapulothoracic upward rotation in thorax frame.
humeral_elevation_axis: [f32; 3]Unit axis of humeral elevation in scapular frame.
humeral_shaft_axis: [f32; 3]Unit shaft axis of the resting humerus (orthogonal to humeral_elevation_axis).
max_scapular_elevation_rad: f32Maximum scapulothoracic upward rotation in radians (default: 60 deg).
Implementations§
§impl ScapuloHumeralCoupling
impl ScapuloHumeralCoupling
pub fn new(
setting_threshold_rad: f32,
gh_to_st_ratio: f32,
scapular_upward_axis: [f32; 3],
humeral_elevation_axis: [f32; 3],
) -> ScapuloHumeralCoupling
pub fn new( setting_threshold_rad: f32, gh_to_st_ratio: f32, scapular_upward_axis: [f32; 3], humeral_elevation_axis: [f32; 3], ) -> ScapuloHumeralCoupling
Constructs a scapulohumeral rhythm coupler with normalized axes and orthogonal shaft frame.
pub fn partition_elevation_rad(&self, total_elevation_rad: f32) -> (f32, f32)
pub fn partition_elevation_rad(&self, total_elevation_rad: f32) -> (f32, f32)
Partitions total_elevation_rad into (glenohumeral_rad, scapulothoracic_rad).
pub fn solve_coupled_quaternions(
&self,
total_humeral_q: [f32; 4],
) -> ([f32; 4], [f32; 4])
pub fn solve_coupled_quaternions( &self, total_humeral_q: [f32; 4], ) -> ([f32; 4], [f32; 4])
Decomposes desired thorax-relative humeral orientation total_humeral_q ([w, x, y, z])
into (scapulothoracic_q, glenohumeral_q) satisfying st_q * gh_q == total_humeral_q.
pub fn solve_coupled_motors(&self, total_humeral_local: Motor) -> (Motor, Motor)
pub fn solve_coupled_motors(&self, total_humeral_local: Motor) -> (Motor, Motor)
Decomposes a thorax-relative humeral local Motor into (scapulothoracic_motor, glenohumeral_motor).
Trait Implementations§
§impl Clone for ScapuloHumeralCoupling
impl Clone for ScapuloHumeralCoupling
§fn clone(&self) -> ScapuloHumeralCoupling
fn clone(&self) -> ScapuloHumeralCoupling
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 ScapuloHumeralCoupling
§impl Debug for ScapuloHumeralCoupling
impl Debug for ScapuloHumeralCoupling
§impl Default for ScapuloHumeralCoupling
impl Default for ScapuloHumeralCoupling
§fn default() -> ScapuloHumeralCoupling
fn default() -> ScapuloHumeralCoupling
§impl PartialEq for ScapuloHumeralCoupling
impl PartialEq for ScapuloHumeralCoupling
impl StructuralPartialEq for ScapuloHumeralCoupling
Auto Trait Implementations§
impl Freeze for ScapuloHumeralCoupling
impl RefUnwindSafe for ScapuloHumeralCoupling
impl Send for ScapuloHumeralCoupling
impl Sync for ScapuloHumeralCoupling
impl Unpin for ScapuloHumeralCoupling
impl UnsafeUnpin for ScapuloHumeralCoupling
impl UnwindSafe for ScapuloHumeralCoupling
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more