Skip to main content

mjsCompiler_

Struct mjsCompiler_ 

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

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(&mut self, value: bool) -> &mut Self

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

Source

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

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

Source

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

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

Source

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

Builder method for setting angles in radians or degrees.

Source

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

Builder method for setting discard visual geoms in parser.

Source

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

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

Source

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

Builder method for setting fuse static bodies with parent.

Source

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

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

Source

pub fn with_alignfree(&mut self, value: bool) -> &mut 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(&mut self, value: f64) -> &mut Self

Builder method for setting enforce minimum body mass.

Source

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

Builder method for setting enforce minimum body diagonal inertia.

Source

pub fn with_settotalmass(&mut self, value: f64) -> &mut 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(&mut self, value: MjtInertiaFromGeom) -> &mut 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) -> &[c_char; 3]

Return an immutable reference to sequence for euler rotations.

Source

pub fn eulerseq_mut(&mut self) -> &mut [c_char; 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(&mut self, value: [i32; 2]) -> &mut Self

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

Source

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

Builder method for setting sequence for euler rotations.

Source

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

Builder method for setting options for lengthrange computation.

Source

pub fn meshdir(&self) -> &str

Return mesh and hfield directory.

§Panics

Panics if the stored string is not valid UTF-8, which can only happen on internal memory corruption – MuJoCo only uses ASCII values.

Source

pub fn set_meshdir(&mut self, value: &str)

Set mesh and hfield directory.

§Panics

When the value contains ‘\0’ characters, a panic occurs.

Source

pub fn with_meshdir(&mut self, value: &str) -> &mut Self

Builder method for setting mesh and hfield directory.

§Panics

When the value contains ‘\0’ characters, a panic occurs.

Source

pub fn texturedir(&self) -> &str

Return texture directory.

§Panics

Panics if the stored string is not valid UTF-8, which can only happen on internal memory corruption – MuJoCo only uses ASCII values.

Source

pub fn set_texturedir(&mut self, value: &str)

Set texture directory.

§Panics

When the value contains ‘\0’ characters, a panic occurs.

Source

pub fn with_texturedir(&mut self, value: &str) -> &mut Self

Builder method for setting texture directory.

§Panics

When the value contains ‘\0’ characters, a panic occurs.

Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more