pub struct BodyIsbAnglesFrame {Show 21 fields
pub thorax_lateral_bend: f64,
pub thorax_axial_rotation: f64,
pub neck_flexion: f64,
pub neck_lateral_bend: f64,
pub neck_axial_rotation: f64,
pub right_shoulder_plane_of_elevation: f64,
pub right_shoulder_elevation: f64,
pub left_shoulder_plane_of_elevation: f64,
pub left_shoulder_elevation: f64,
pub right_elbow_flexion: f64,
pub left_elbow_flexion: f64,
pub right_hip_flexion: f64,
pub right_hip_adduction: f64,
pub right_hip_internal_rotation: f64,
pub left_hip_flexion: f64,
pub left_hip_adduction: f64,
pub left_hip_internal_rotation: f64,
pub right_knee_flexion: f64,
pub left_knee_flexion: f64,
pub right_ankle_dorsiflexion: f64,
pub left_ankle_dorsiflexion: f64,
}Expand description
Body ISB joint angles for one frame (21 scalars, radians).
Shoulder plane_of_elevation fields are NaN when the shoulder is near
neutral (singularity). All other values are always finite after a solve.
Fields§
§thorax_lateral_bend: f64§thorax_axial_rotation: f64§neck_flexion: f64§neck_lateral_bend: f64§neck_axial_rotation: f64§right_shoulder_plane_of_elevation: f64§right_shoulder_elevation: f64§left_shoulder_plane_of_elevation: f64§left_shoulder_elevation: f64§right_elbow_flexion: f64§left_elbow_flexion: f64§right_hip_flexion: f64§right_hip_adduction: f64§right_hip_internal_rotation: f64§left_hip_flexion: f64§left_hip_adduction: f64§left_hip_internal_rotation: f64§right_knee_flexion: f64§left_knee_flexion: f64§right_ankle_dorsiflexion: f64§left_ankle_dorsiflexion: f64Implementations§
Source§impl BodyIsbAnglesFrame
impl BodyIsbAnglesFrame
Sourcepub const fn from_array(values: [f64; 21]) -> Self
pub const fn from_array(values: [f64; 21]) -> Self
Builds a frame from its values in wire order.
Useful for the Zendo server, which produces frames to encode rather than decoding them.
Sourcepub const fn get(&self, key: IsbAngleName) -> f64
pub const fn get(&self, key: IsbAngleName) -> f64
Looks up a single value by name.
Sourcepub fn iter(&self) -> impl Iterator<Item = (IsbAngleName, f64)>
pub fn iter(&self) -> impl Iterator<Item = (IsbAngleName, f64)>
Iterates over (name, value) pairs in wire order.
Trait Implementations§
Source§impl Clone for BodyIsbAnglesFrame
impl Clone for BodyIsbAnglesFrame
Source§fn clone(&self) -> BodyIsbAnglesFrame
fn clone(&self) -> BodyIsbAnglesFrame
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 BodyIsbAnglesFrame
Source§impl Debug for BodyIsbAnglesFrame
impl Debug for BodyIsbAnglesFrame
Source§impl Default for BodyIsbAnglesFrame
impl Default for BodyIsbAnglesFrame
Source§fn default() -> BodyIsbAnglesFrame
fn default() -> BodyIsbAnglesFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for BodyIsbAnglesFrame
impl PartialEq for BodyIsbAnglesFrame
Source§fn eq(&self, other: &BodyIsbAnglesFrame) -> bool
fn eq(&self, other: &BodyIsbAnglesFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BodyIsbAnglesFrame
Auto Trait Implementations§
impl Freeze for BodyIsbAnglesFrame
impl RefUnwindSafe for BodyIsbAnglesFrame
impl Send for BodyIsbAnglesFrame
impl Sync for BodyIsbAnglesFrame
impl Unpin for BodyIsbAnglesFrame
impl UnsafeUnpin for BodyIsbAnglesFrame
impl UnwindSafe for BodyIsbAnglesFrame
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