pub struct WaypointTrajectoryBuilder { /* private fields */ }Expand description
Builder for creating waypoint trajectories.
Implementations§
Source§impl WaypointTrajectoryBuilder
impl WaypointTrajectoryBuilder
Sourcepub fn velocity_percent(self, percent: u8) -> Self
pub fn velocity_percent(self, percent: u8) -> Self
Set velocity as percentage of motor’s max (1-200).
Sourcepub fn build(self) -> Result<WaypointTrajectory>
pub fn build(self) -> Result<WaypointTrajectory>
Build the waypoint trajectory configuration.
§Errors
Returns an error if required fields are missing or waypoints are empty.
Trait Implementations§
Source§impl Clone for WaypointTrajectoryBuilder
impl Clone for WaypointTrajectoryBuilder
Source§fn clone(&self) -> WaypointTrajectoryBuilder
fn clone(&self) -> WaypointTrajectoryBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaypointTrajectoryBuilder
impl Debug for WaypointTrajectoryBuilder
Auto Trait Implementations§
impl Freeze for WaypointTrajectoryBuilder
impl RefUnwindSafe for WaypointTrajectoryBuilder
impl Send for WaypointTrajectoryBuilder
impl Sync for WaypointTrajectoryBuilder
impl Unpin for WaypointTrajectoryBuilder
impl UnwindSafe for WaypointTrajectoryBuilder
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