Skip to main content

mjOption

Struct mjOption 

Source
pub struct mjOption { /* private fields */ }

Implementations§

Source§

impl mjOption

Source

pub fn timestep(&self) -> f64

simulation timestep in seconds

Source

pub fn set_timestep(&mut self, value: f64) -> &mut Self

set simulation timestep in seconds

Source

pub fn impratio(&self) -> f64

ratio of friction-to-normal contact impedance

Source

pub fn set_impratio(&mut self, value: f64) -> &mut Self

set ratio of friction-to-normal contact impedance

Source

pub fn tolerance(&self) -> f64

main solver tolerance

Source

pub fn set_tolerance(&mut self, value: f64) -> &mut Self

set main solver tolerance

Source

pub fn ls_tolerance(&self) -> f64

CG/Newton linesearch tolerance

Source

pub fn set_ls_tolerance(&mut self, value: f64) -> &mut Self

set CG/Newton linesearch tolerance

Source

pub fn noslip_tolerance(&self) -> f64

noslip solver tolerance

Source

pub fn set_noslip_tolerance(&mut self, value: f64) -> &mut Self

set noslip solver tolerance

Source

pub fn ccd_tolerance(&self) -> f64

convex collision solver tolerance

Source

pub fn set_ccd_tolerance(&mut self, value: f64) -> &mut Self

set convex collision solver tolerance

Source

pub fn sleep_tolerance(&self) -> f64

sleep velocity tolerance

Source

pub fn set_sleep_tolerance(&mut self, value: f64) -> &mut Self

set sleep velocity tolerance

Source

pub fn gravity(&self) -> [f64; 3]

gravitational acceleration

Source

pub fn set_gravity(&mut self, value: [f64; 3]) -> &mut Self

set gravitational acceleration

Source

pub fn wind(&self) -> [f64; 3]

wind (for lift, drag and viscosity)

Source

pub fn set_wind(&mut self, value: [f64; 3]) -> &mut Self

set wind (for lift, drag and viscosity)

Source

pub fn magnetic(&self) -> [f64; 3]

global magnetic flux

Source

pub fn set_magnetic(&mut self, value: [f64; 3]) -> &mut Self

set global magnetic flux

Source

pub fn density(&self) -> f64

density of medium

Source

pub fn set_density(&mut self, value: f64) -> &mut Self

set density of medium

Source

pub fn viscosity(&self) -> f64

viscosity of medium

Source

pub fn set_viscosity(&mut self, value: f64) -> &mut Self

set viscosity of medium

Source

pub fn o_margin(&self) -> f64

override contact solver’s margin

Source

pub fn set_o_margin(&mut self, value: f64) -> &mut Self

set override contact solver’s margin

Source

pub fn o_solref(&self) -> [f64; 2]

override contact solver’s solref

Source

pub fn set_o_solref(&mut self, value: [f64; 2]) -> &mut Self

set override contact solver’s solref

Source

pub fn o_solimp(&self) -> [f64; 5]

override contact solver’s solimp

Source

pub fn set_o_solimp(&mut self, value: [f64; 5]) -> &mut Self

set override contact solver’s solimp

Source

pub fn o_friction(&self) -> [f64; 5]

override contact solver’s friction

Source

pub fn set_o_friction(&mut self, value: [f64; 5]) -> &mut Self

set override contact solver’s friction

Source

pub fn iterations(&self) -> usize

maximum number of main solver iterations

Source

pub fn set_iterations(&mut self, value: usize) -> &mut Self

set maximum number of main solver iterations

Source

pub fn ls_iterations(&self) -> usize

maximum number of CG/Newton linesearch iterations

Source

pub fn set_ls_iterations(&mut self, value: usize) -> &mut Self

set maximum number of CG/Newton linesearch iterations

Source

pub fn noslip_iterations(&self) -> usize

maximum number of noslip solver iterations

Source

pub fn set_noslip_iterations(&mut self, value: usize) -> &mut Self

set maximum number of noslip solver iterations

Source

pub fn ccd_iterations(&self) -> usize

maximum number of convex collision solver iterations

Source

pub fn set_ccd_iterations(&mut self, value: usize) -> &mut Self

set maximum number of convex collision solver iterations

Source

pub fn integrator(&self) -> mjtIntegrator

integration mode (mjtIntegrator)

Source

pub fn set_integrator(&mut self, value: mjtIntegrator) -> &mut Self

set integration mode (mjtIntegrator)

Source

pub fn cone(&self) -> mjtCone

type of friction cone (mjtCone)

Source

pub fn set_cone(&mut self, value: mjtCone) -> &mut Self

set type of friction cone (mjtCone)

Source

pub fn jacobian(&self) -> mjtJacobian

type of Jacobian (mjtJacobian)

Source

pub fn set_jacobian(&mut self, value: mjtJacobian) -> &mut Self

set type of Jacobian (mjtJacobian)

Source

pub fn solver(&self) -> mjtSolver

solver algorithm (mjtSolver)

Source

pub fn set_solver(&mut self, value: mjtSolver) -> &mut Self

set solver algorithm (mjtSolver)

Source

pub fn disableflags(&self) -> mjtDisableBit

bit flags for disabling standard features

Source

pub fn set_disableflags(&mut self, value: mjtDisableBit) -> &mut Self

set bit flags for disabling standard features

Source

pub fn enableflags(&self) -> mjtEnableBit

bit flags for enabling optional features

Source

pub fn set_enableflags(&mut self, value: mjtEnableBit) -> &mut Self

set bit flags for enabling optional features

Source

pub fn disableactuator(&self) -> mjtDisableBit

bit flags for disabling actuators by group id

Source

pub fn set_disableactuator(&mut self, value: mjtDisableBit) -> &mut Self

set bit flags for disabling actuators by group id

Trait Implementations§

Source§

impl Clone for mjOption

Source§

fn clone(&self) -> mjOption

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mjOption

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for mjOption

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for mjOption

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.