Skip to main content

Copp3Problem

Struct Copp3Problem 

Source
pub struct Copp3Problem<'a, M: RobotTorque> { /* private fields */ }
Expand description

The problem of COPP3.

§Arguments

  • robot - A robot with torque implemented, which defines the constraints and dynamic of the problem.
  • objectives - Objectives for COPP3 optimization.
  • idx_s_start - The starting index along the path (reached).
  • a_linearization - Linearization reference profile for third-order constraints.
  • a_boundary=(a_start,a_final) - The initial and final acceleration at the start and end of the path.
  • b_boundary=(b_start,b_final) - The initial and final boundary conditions for b.
  • num_stationary=(start,end) - Effective stationary intervals derived in build_with_linearization().

Implementations§

Source§

impl<'a, M: RobotTorque> Copp3Problem<'a, M>

Source

pub fn set_a_linearization(&mut self, a_linearization: &'a [f64])

Update linearization profile.

Source

pub fn set_a_linear(&mut self, a_linearization: &'a [f64])

Backward-compatible alias for set_a_linearization.

Source

pub fn set_objective(&mut self, objective: &'a [CoppObjective<'a>])

Update objective list.

Source

pub fn as_topp3_problem(&self) -> Topp3Problem<'_>

Convert to the TOPP3 view that shares interval/boundary/linearization fields.

Auto Trait Implementations§

§

impl<'a, M> Freeze for Copp3Problem<'a, M>

§

impl<'a, M> RefUnwindSafe for Copp3Problem<'a, M>
where M: RefUnwindSafe,

§

impl<'a, M> Send for Copp3Problem<'a, M>
where M: Send,

§

impl<'a, M> Sync for Copp3Problem<'a, M>
where M: Sync,

§

impl<'a, M> Unpin for Copp3Problem<'a, M>

§

impl<'a, M> !UnwindSafe for Copp3Problem<'a, M>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.