#[repr(C)]pub struct SwerveTrajectorySample {
pub timestamp: f64,
pub x: f64,
pub y: f64,
pub heading: f64,
pub velocity_x: f64,
pub velocity_y: f64,
pub angular_velocity: f64,
pub acceleration_x: f64,
pub acceleration_y: f64,
pub angular_acceleration: f64,
pub module_forces_x: Vec<f64>,
pub module_forces_y: Vec<f64>,
}Expand description
Swerve trajectory sample.
Fields§
§timestamp: f64The timestamp.
x: f64The x coordinate.
y: f64The y coordinate.
heading: f64The heading.
velocity_x: f64The velocity’s x component.
velocity_y: f64The velocity’s y component.
angular_velocity: f64The angular velocity.
acceleration_x: f64The acceleration’s x component.
acceleration_y: f64The acceleration’s y component.
angular_acceleration: f64The angular acceleration.
module_forces_x: Vec<f64>The force on each module in the X direction.
module_forces_y: Vec<f64>The force on each module in the Y direction.
Trait Implementations§
Source§impl Clone for SwerveTrajectorySample
impl Clone for SwerveTrajectorySample
Source§impl Debug for SwerveTrajectorySample
impl Debug for SwerveTrajectorySample
Source§impl<'de> Deserialize<'de> for SwerveTrajectorySample
impl<'de> Deserialize<'de> for SwerveTrajectorySample
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 SwerveTrajectorySample
impl ExternType for SwerveTrajectorySample
Auto Trait Implementations§
impl Freeze for SwerveTrajectorySample
impl RefUnwindSafe for SwerveTrajectorySample
impl Send for SwerveTrajectorySample
impl Sync for SwerveTrajectorySample
impl Unpin for SwerveTrajectorySample
impl UnsafeUnpin for SwerveTrajectorySample
impl UnwindSafe for SwerveTrajectorySample
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