#[repr(C)]pub struct DifferentialDrivetrain {
pub mass: f64,
pub moi: f64,
pub wheel_radius: f64,
pub wheel_max_angular_velocity: f64,
pub wheel_max_torque: f64,
pub wheel_cof: f64,
pub trackwidth: f64,
}Expand description
A differential drivetrain physical model.
Fields§
§mass: f64The mass of the robot (kg).
moi: f64The moment of inertia of the robot about the origin (kg−m²).
wheel_radius: f64Radius of the wheels (m).
wheel_max_angular_velocity: f64Maximum angular velocity of the wheels (rad/s).
wheel_max_torque: f64Maximum torque applied to the wheels (N−m).
wheel_cof: f64The Coefficient of Friction (CoF) of the wheels.
trackwidth: f64Distance between the two driverails (m).
Trait Implementations§
Source§impl Clone for DifferentialDrivetrain
impl Clone for DifferentialDrivetrain
Source§impl Debug for DifferentialDrivetrain
impl Debug for DifferentialDrivetrain
Source§impl<'de> Deserialize<'de> for DifferentialDrivetrain
impl<'de> Deserialize<'de> for DifferentialDrivetrain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 ExternType for DifferentialDrivetrain
impl ExternType for DifferentialDrivetrain
Auto Trait Implementations§
impl Freeze for DifferentialDrivetrain
impl RefUnwindSafe for DifferentialDrivetrain
impl Send for DifferentialDrivetrain
impl Sync for DifferentialDrivetrain
impl Unpin for DifferentialDrivetrain
impl UnsafeUnpin for DifferentialDrivetrain
impl UnwindSafe for DifferentialDrivetrain
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