mjsCompiler_

Struct mjsCompiler_ 

Source
#[repr(C)]
pub struct mjsCompiler_ {
Show 16 fields pub autolimits: mjtByte, pub boundmass: f64, pub boundinertia: f64, pub settotalmass: f64, pub balanceinertia: mjtByte, pub fitaabb: mjtByte, pub degree: mjtByte, pub eulerseq: [c_char; 3], pub discardvisual: mjtByte, pub usethread: mjtByte, pub fusestatic: mjtByte, pub inertiafromgeom: c_int, pub inertiagrouprange: [c_int; 2], pub saveinertial: mjtByte, pub alignfree: c_int, pub LRopt: mjLROpt,
}

Fields§

§autolimits: mjtByte§boundmass: f64§boundinertia: f64§settotalmass: f64§balanceinertia: mjtByte§fitaabb: mjtByte§degree: mjtByte§eulerseq: [c_char; 3]§discardvisual: mjtByte§usethread: mjtByte§fusestatic: mjtByte§inertiafromgeom: c_int§inertiagrouprange: [c_int; 2]§saveinertial: mjtByte§alignfree: c_int§LRopt: mjLROpt

Implementations§

Source§

impl mjsCompiler_

Source

pub fn autolimits(&self) -> bool

Check infer “limited” attribute based on range.

Source

pub fn balanceinertia(&self) -> bool

Check automatically impose A + B >= C rule.

Source

pub fn fitaabb(&self) -> bool

Check meshfit to aabb instead of inertia box.

Source

pub fn degree(&self) -> bool

Check angles in radians or degrees.

Source

pub fn discardvisual(&self) -> bool

Check discard visual geoms in parser.

Source

pub fn usethread(&self) -> bool

Check use multiple threads to speed up compiler.

Source

pub fn fusestatic(&self) -> bool

Check fuse static bodies with parent.

Source

pub fn saveinertial(&self) -> bool

Check save explicit inertial clause for all bodies to XML.

Source

pub fn alignfree(&self) -> bool

Check align free joints with inertial frame.

Source

pub fn set_autolimits(&mut self, value: bool)

Set infer “limited” attribute based on range.

Source

pub fn set_balanceinertia(&mut self, value: bool)

Set automatically impose A + B >= C rule.

Source

pub fn set_fitaabb(&mut self, value: bool)

Set meshfit to aabb instead of inertia box.

Source

pub fn set_degree(&mut self, value: bool)

Set angles in radians or degrees.

Source

pub fn set_discardvisual(&mut self, value: bool)

Set discard visual geoms in parser.

Source

pub fn set_usethread(&mut self, value: bool)

Set use multiple threads to speed up compiler.

Source

pub fn set_fusestatic(&mut self, value: bool)

Set fuse static bodies with parent.

Source

pub fn set_saveinertial(&mut self, value: bool)

Set save explicit inertial clause for all bodies to XML.

Source

pub fn set_alignfree(&mut self, value: bool)

Set align free joints with inertial frame.

Source

pub fn with_autolimits(self, value: bool) -> Self

Builder method for setting infer “limited” attribute based on range.

Source

pub fn with_balanceinertia(self, value: bool) -> Self

Builder method for setting automatically impose A + B >= C rule.

Source

pub fn with_fitaabb(self, value: bool) -> Self

Builder method for setting meshfit to aabb instead of inertia box.

Source

pub fn with_degree(self, value: bool) -> Self

Builder method for setting angles in radians or degrees.

Source

pub fn with_discardvisual(self, value: bool) -> Self

Builder method for setting discard visual geoms in parser.

Source

pub fn with_usethread(self, value: bool) -> Self

Builder method for setting use multiple threads to speed up compiler.

Source

pub fn with_fusestatic(self, value: bool) -> Self

Builder method for setting fuse static bodies with parent.

Source

pub fn with_saveinertial(self, value: bool) -> Self

Builder method for setting save explicit inertial clause for all bodies to XML.

Source

pub fn with_alignfree(self, value: bool) -> Self

Builder method for setting align free joints with inertial frame.

Source

pub fn boundmass(&self) -> f64

Return value of enforce minimum body mass.

Source

pub fn boundinertia(&self) -> f64

Return value of enforce minimum body diagonal inertia.

Source

pub fn settotalmass(&self) -> f64

Return value of rescale masses and inertias; <=0: ignore.

Source

pub fn set_boundmass(&mut self, value: f64)

Set enforce minimum body mass.

Source

pub fn set_boundinertia(&mut self, value: f64)

Set enforce minimum body diagonal inertia.

Source

pub fn set_settotalmass(&mut self, value: f64)

Set rescale masses and inertias; <=0: ignore.

Source

pub fn with_boundmass(self, value: f64) -> Self

Builder method for setting enforce minimum body mass.

Source

pub fn with_boundinertia(self, value: f64) -> Self

Builder method for setting enforce minimum body diagonal inertia.

Source

pub fn with_settotalmass(self, value: f64) -> Self

Builder method for setting rescale masses and inertias; <=0: ignore.

Source

pub fn inertiafromgeom(&self) -> MjtInertiaFromGeom

Return value of use geom inertias.

Source

pub fn set_inertiafromgeom(&mut self, value: MjtInertiaFromGeom)

Set use geom inertias.

Source

pub fn with_inertiafromgeom(self, value: MjtInertiaFromGeom) -> Self

Builder method for setting use geom inertias.

Source

pub fn inertiagrouprange(&self) -> &[i32; 2]

Return an immutable reference to range of geom groups used to compute inertia.

Source

pub fn inertiagrouprange_mut(&mut self) -> &mut [i32; 2]

Return a mutable reference to range of geom groups used to compute inertia.

Source

pub fn eulerseq(&self) -> &[i8; 3]

Return an immutable reference to sequence for euler rotations.

Source

pub fn eulerseq_mut(&mut self) -> &mut [i8; 3]

Return a mutable reference to sequence for euler rotations.

Source

pub fn lropt(&self) -> &MjLROpt

Return an immutable reference to options for lengthrange computation.

Source

pub fn lropt_mut(&mut self) -> &mut MjLROpt

Return a mutable reference to options for lengthrange computation.

Source

pub fn with_inertiagrouprange(self, value: [i32; 2]) -> Self

Builder method for setting range of geom groups used to compute inertia.

Source

pub fn with_eulerseq(self, value: [i8; 3]) -> Self

Builder method for setting sequence for euler rotations.

Source

pub fn with_lropt(self, value: MjLROpt) -> Self

Builder method for setting options for lengthrange computation.

Trait Implementations§

Source§

impl Clone for mjsCompiler_

Source§

fn clone(&self) -> mjsCompiler_

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 mjsCompiler_

Source§

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

Formats the value using the given formatter. Read more

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.