Struct VehicleState
#[repr(C)]pub struct VehicleState {
pub position: [f32; 3],
pub velocity: [f32; 3],
pub heading: f32,
pub pitch: f32,
pub roll: f32,
pub angular_velocity: [f32; 3],
pub steering_angle: f32,
pub wheel_angles: [f32; 4],
pub suspension_compression: [f32; 4],
pub odometer: f64,
}Expand description
Dynamic runtime state of a 4-wheel vehicle.
Fields§
§position: [f32; 3]Chassis center position [x, y, z] in world space (meters).
velocity: [f32; 3]Chassis velocity [vx, vy, vz] in world space (m/s).
heading: f32Heading (yaw) angle in radians.
pitch: f32Pitch angle in radians (positive nose up).
roll: f32Roll angle in radians (positive right side down).
angular_velocity: [f32; 3]Angular velocity [yaw_rate, pitch_rate, roll_rate] in rad/s.
steering_angle: f32Current front wheel steering angle in radians.
wheel_angles: [f32; 4]Wheel rotational angles [fl, fr, rl, rr] in radians.
suspension_compression: [f32; 4]Suspension compression distances [fl, fr, rl, rr] in meters.
odometer: f64Total forward odometer distance in meters.
Trait Implementations§
§impl Clone for VehicleState
impl Clone for VehicleState
§fn clone(&self) -> VehicleState
fn clone(&self) -> VehicleState
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 VehicleState
§impl Debug for VehicleState
impl Debug for VehicleState
§impl Default for VehicleState
impl Default for VehicleState
§fn default() -> VehicleState
fn default() -> VehicleState
Returns the “default value” for a type. Read more
§impl PartialEq for VehicleState
impl PartialEq for VehicleState
impl StructuralPartialEq for VehicleState
Auto Trait Implementations§
impl Freeze for VehicleState
impl RefUnwindSafe for VehicleState
impl Send for VehicleState
impl Sync for VehicleState
impl Unpin for VehicleState
impl UnsafeUnpin for VehicleState
impl UnwindSafe for VehicleState
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