Struct Orbita3dKinematicsModel

Source
pub struct Orbita3dKinematicsModel {
    pub alpha: f64,
    pub gamma_min: f64,
    pub offset: f64,
    pub beta: f64,
    pub gamma_max: f64,
    pub passiv_arms_direct: bool,
}
Expand description

Kinematics model for Orbita3d

Fields§

§alpha: f64§gamma_min: f64§offset: f64§beta: f64§gamma_max: f64§passiv_arms_direct: bool

Implementations§

Source§

impl Orbita3dKinematicsModel

Source

pub fn jacobian_inverse( &self, rot: Rotation3<f64>, thetas: [f64; 3], ) -> Matrix3<f64>

Compute the inverse jacobian

Compute the inverse jacobian from the platform orientation and the motor angles.

§Arguments
  • rot - The platform orientation as a rotation matrix.
  • thetas - The motor angles as a 3-element array.
§Returns
  • The inverse jacobian as a 3x3 matrix.
Source

pub fn jacobian(&self, rot: Rotation3<f64>, thetas: [f64; 3]) -> Matrix3<f64>

Compute the jacobian

The jacobian is computed by inverting the inverse jacobian.

§Arguments
  • rot - The platform orientation as a rotation matrix.
  • thetas - The motor angles as a 3-element array.
§Returns
  • The jacobian as a 3x3 matrix.
Source§

impl Orbita3dKinematicsModel

Source

pub fn compute_forward_kinematics(&self, thetas: [f64; 3]) -> Rotation3<f64>

Compute the position forward kinematics

Compute the output 3d orientation given the 3 angles of the motors (in radians)

§Arguments
  • thetas - the angles of the motors (in radians) without the 120° offsets
§Returns
  • the 3d orientation of the platform
Source

pub fn compute_forward_kinematics_rpy_multiturn( &self, thetas: [f64; 3], ) -> Result<[f64; 3], InverseSolutionErrorKind>

Source§

impl Orbita3dKinematicsModel

Source

pub fn compute_inverse_kinematics( &self, rot: Rotation3<f64>, ) -> Result<[f64; 3], InverseSolutionErrorKind>

Compute the inverse kinematics of the Orbita3d platform.

Compute the motor angles from the platform orientation.

§Arguments
  • rot - The platform orientation as a rotation matrix.
§Returns
  • The motor angles as a 3-element array, without the 120° offsets.
Source

pub fn compute_inverse_kinematics_rpy_multiturn( &self, target_rpy: [f64; 3], ) -> Result<[f64; 3], InverseSolutionErrorKind>

Source

pub fn check_gammas(&self, thetas: Vector3<f64>) -> Result<(), Box<dyn Error>>

Source

pub fn compute_valid_solution( &self, target_rpy: [f64; 3], thetas: [f64; 3], ) -> Result<[f64; 3], InverseSolutionErrorKind>

Source§

impl Orbita3dKinematicsModel

Source

pub fn compute_output_torque( &self, thetas: [f64; 3], input_torque: [f64; 3], ) -> Vector3<f64>

Compute the forward static torque

Compute the output static torque (platform oriented torque) from the input torque (motors torque) and the motor angles.

§Arguments
  • thetas - The motor angles as a 3-element array.
  • input_torque - The input torque as a 3-element array.
§Returns
  • The output torque as a 3d pseudo vector.
Source

pub fn compute_input_torque( &self, thetas: [f64; 3], output_torque: Vector3<f64>, ) -> [f64; 3]

Compute the inverse static torque

Compute the input torque (motors torque) from the output torque (platform oriented torque) and the motor angles.

§Arguments
  • thetas - The motor angles as a 3-element array.
  • output_torque - The output torque as a 3d pseudo-vector.
§Returns
  • The input torque as a 3-element array.
Source§

impl Orbita3dKinematicsModel

Source

pub fn compute_output_velocity( &self, thetas: [f64; 3], input_velocity: [f64; 3], ) -> Vector3<f64>

Compute the forward velocity

Compute the output velocity (platform oriented velocity) from the input velocity (motors velocity) and the motor angles.

§Arguments
  • thetas - The motor angles as a 3-element array.
  • input_velocity - The input velocity as a 3-element array (motors velocity).
§Returns
  • The output velocity as a 3d rotation. This rotation is a axis-angle rotation vector representing the velocity pseudo vector.
Source

pub fn compute_input_velocity( &self, thetas: [f64; 3], output_velocity: Vector3<f64>, ) -> [f64; 3]

Compute the inverse velocity

Compute the input velocity (motors velocity) from the output velocity (platform oriented velocity) and the motor angles.

§Arguments
  • thetas - The motor angles as a 3-element array.
  • output_velocity - The output velocity as a 3d rotation axis-angle velocity pseudo-vector.
§Returns
  • The input velocity as a 3-element array.

Trait Implementations§

Source§

impl Clone for Orbita3dKinematicsModel

Source§

fn clone(&self) -> Orbita3dKinematicsModel

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Orbita3dKinematicsModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Orbita3dKinematicsModel

Source§

fn default() -> Self

Creates a new Orbita3dKinematicsModel with default values corresponding to Reachy’s neck.

Source§

impl<'de> Deserialize<'de> for Orbita3dKinematicsModel

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Orbita3dKinematicsModel

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Orbita3dKinematicsModel

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,