#[repr(C)]pub struct trajbell {}
Expand description
bell-shaped velocity trajectory
Fields§
§t: float
total duration
tv: float
constant velocity phase
ta: float
acceleration phase
td: float
deceleration phase
taj: float
time-interval in which the jerk is constant (j max or j min ) during the acceleration phase
tdj: float
time-interval in which the jerk is constant (j max or j min ) during the deceleration phase
p0: float
initial position
p1: float
final position
v0: float
initial velocity
v1: float
final velocity
vm: float
maximum velocity
jm: float
maximum jerk
am: float
maximum acceleration
dm: float
maximum deceleration
Implementations§
source§impl trajbell
impl trajbell
sourcepub fn gen(
&mut self,
jm: float,
am: float,
vm: float,
p0: float,
p1: float,
v0: float,
v1: float
) -> float
pub fn gen( &mut self, jm: float, am: float, vm: float, p0: float, p1: float, v0: float, v1: float ) -> float
generate for bell-shaped velocity trajectory
sourcepub fn pos(&mut self, x: float) -> float
pub fn pos(&mut self, x: float) -> float
calculate position for bell-shaped velocity trajectory
sourcepub fn vel(&mut self, x: float) -> float
pub fn vel(&mut self, x: float) -> float
calculate velocity for bell-shaped velocity trajectory
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for trajbell
impl Send for trajbell
impl Sync for trajbell
impl Unpin for trajbell
impl UnwindSafe for trajbell
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