Struct k::Mimic [−][src]
pub struct Mimic<T: Real> { pub name: String, pub multiplier: T, pub offset: T, }
Information for copying joint state of other joint
joint angles = joint[name] * multiplier + offset
Fields
name: String
Name of other joint
multiplier: T
offset: T
Methods
impl<T> Mimic<T> where
T: Real,
[src]
impl<T> Mimic<T> where
T: Real,
pub fn new(name: String, multiplier: T, offset: T) -> Self
[src]
pub fn new(name: String, multiplier: T, offset: T) -> Self
pub fn mimic_angle(&self, from_angle: T) -> T
[src]
pub fn mimic_angle(&self, from_angle: T) -> T
Trait Implementations
impl<T: Debug + Real> Debug for Mimic<T>
[src]
impl<T: Debug + Real> Debug for Mimic<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone + Real> Clone for Mimic<T>
[src]
impl<T: Clone + Real> Clone for Mimic<T>